From b2e035fa96e4c2b06dcd559850d11987ba96ee1c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 24 Oct 2012 21:24:40 +0000 Subject: [PATCH] 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 --- 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