diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-24 21:24:40 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-24 21:24:40 +0000 |
commit | b2e035fa96e4c2b06dcd559850d11987ba96ee1c (patch) | |
tree | 5338ed0ffdbf860775954ec02fd1d8d9c3bb73ad /app/helpers | |
parent | 1c7e4bb7f018520533f9a2bc476313d7569d684e (diff) | |
download | redmine-b2e035fa96e4c2b06dcd559850d11987ba96ee1c.tar.gz redmine-b2e035fa96e4c2b06dcd559850d11987ba96ee1c.zip |
Don't show confirmation message when disabled delete link in the context menu (#12199).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10715 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/context_menus_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/context_menus_helper.rb b/app/helpers/context_menus_helper.rb index 15e670c78..940f4ce31 100644 --- a/app/helpers/context_menus_helper.rb +++ b/app/helpers/context_menus_helper.rb @@ -26,8 +26,8 @@ module ContextMenusHelper end if options.delete(:disabled) options.delete(:method) - options.delete(:confirm) - options.delete(:onclick) + options.delete(:data) + options[:onclick] = 'return false;' options[:class] << ' disabled' url = '#' end |