From a32822477170bf57a482365b8c6c47bd617147e3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 13 Feb 2015 20:00:22 +0000 Subject: Removed IssuesController#update_form action, use #new and #edit instead. git-svn-id: http://svn.redmine.org/redmine/trunk@13997 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/edit.js.erb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/views/issues/edit.js.erb (limited to 'app/views/issues/edit.js.erb') diff --git a/app/views/issues/edit.js.erb b/app/views/issues/edit.js.erb new file mode 100644 index 000000000..8c94aeceb --- /dev/null +++ b/app/views/issues/edit.js.erb @@ -0,0 +1,7 @@ +replaceIssueFormWith('<%= escape_javascript(render :partial => 'form') %>'); + +<% if User.current.allowed_to?(:log_time, @issue.project) %> + $('#log_time').show(); +<% else %> + $('#log_time').hide(); +<% end %> -- cgit v1.2.3