diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-19 17:54:26 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-19 17:54:26 +0000 |
commit | 5b6732cfaf8b71edbbb3e8152f2f8ba80beb0d5a (patch) | |
tree | 8530c2586ae29f1233ae2817589ec4c3eed97f07 /app/controllers/issues_controller.rb | |
parent | b53f9c688b4a56e868f34609a0f2ddc4199b3491 (diff) | |
download | redmine-5b6732cfaf8b71edbbb3e8152f2f8ba80beb0d5a.tar.gz redmine-5b6732cfaf8b71edbbb3e8152f2f8ba80beb0d5a.zip |
Removes RJS from IssuesController.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10050 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/issues_controller.rb')
-rw-r--r-- | app/controllers/issues_controller.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 246140f45..e7fdb6886 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -127,13 +127,7 @@ class IssuesController < ApplicationController def new respond_to do |format| format.html { render :action => 'new', :layout => !request.xhr? } - format.js { - render(:update) { |page| - page.replace_html 'all_attributes', :partial => 'form' - m = User.current.allowed_to?(:log_time, @issue.project) ? 'show' : 'hide' - page << "if ($('log_time')) {Element.#{m}('log_time');}" - } - } + format.js { render :partial => 'update_form' } end end |