]> source.dussan.org Git - redmine.git/commitdiff
Merged r10715 from trunk.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 26 Oct 2012 03:16:15 +0000 (03:16 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 26 Oct 2012 03:16:15 +0000 (03:16 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.1-stable@10724 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/context_menus_helper.rb

index 15e670c7838f5b8e87617f6e19fb762068dcb19e..940f4ce3115dc3eacb0f4589808b5df38b0c93ca 100644 (file)
@@ -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