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
This commit is contained in:
Jean-Philippe Lang 2012-10-24 21:24:40 +00:00
parent 1c7e4bb7f0
commit b2e035fa96
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ module ContextMenusHelper
end end
if options.delete(:disabled) if options.delete(:disabled)
options.delete(:method) options.delete(:method)
options.delete(:confirm) options.delete(:data)
options.delete(:onclick) options[:onclick] = 'return false;'
options[:class] << ' disabled' options[:class] << ' disabled'
url = '#' url = '#'
end end