Removes RJS from IssuesController.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10050 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-07-19 17:54:26 +00:00
parent b53f9c688b
commit 5b6732cfaf
3 changed files with 14 additions and 7 deletions
+9
View File
@@ -0,0 +1,9 @@
Element.update('all_attributes', '<%= escape_javascript(render :partial => 'form') %>');
if ($('log_time')) {
<% if User.current.allowed_to?(:log_time, @issue.project) %>
Element.show('log_time');
<% else %>
Element.hide('log_time');
<% end %>
}