]> source.dussan.org Git - redmine.git/commitdiff
Add missing "icon" class to items with "icon-checked" class in the context menu ...
authorGo MAEDA <maeda@farend.jp>
Fri, 15 May 2020 04:49:41 +0000 (04:49 +0000)
committerGo MAEDA <maeda@farend.jp>
Fri, 15 May 2020 04:49:41 +0000 (04:49 +0000)
Patch by Mizuki ISHIKAWA.

git-svn-id: http://svn.redmine.org/redmine/trunk@19778 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/context_menus_helper.rb
test/functional/context_menus_controller_test.rb

index db71abe310e42758d60c32d57734b61dfbdf0258..d545f3c5129f1394f966d4d0c549ec0a7373a86e 100644 (file)
@@ -21,7 +21,7 @@ module ContextMenusHelper
   def context_menu_link(name, url, options={})
     options[:class] ||= ''
     if options.delete(:selected)
-      options[:class] += ' icon-checked disabled'
+      options[:class] += ' icon icon-checked disabled'
       options[:disabled] = true
     end
     if options.delete(:disabled)
index 94417bffe3ae1d2daf5454f714ef14bd94d8bef4..1e926c29da7f202d89c3a567e080178049b5da3f 100644 (file)
@@ -155,7 +155,7 @@ class ContextMenusControllerTest < Redmine::ControllerTest
       assert_select 'a[href="#"]', :text => 'List'
       assert_select 'ul' do
         assert_select 'a', 3
-        assert_select 'a.icon-checked', :text => 'Bar'
+        assert_select 'a.icon.icon-checked', :text => 'Bar'
       end
     end
   end