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:
parent
1c7e4bb7f0
commit
b2e035fa96
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue