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/views/issues | |
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/views/issues')
-rw-r--r-- | app/views/issues/_update_form.js.erb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/issues/_update_form.js.erb b/app/views/issues/_update_form.js.erb new file mode 100644 index 000000000..89429fc20 --- /dev/null +++ b/app/views/issues/_update_form.js.erb @@ -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 %> +} |