From a70cf2f833d79c6eb3b50165944835b16618863d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 26 Oct 2012 03:16:15 +0000 Subject: [PATCH] Merged r10715 from trunk. 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 | 4 ++-- 1 file 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