Преглед на файлове

Add missing "icon" class to items with "icon-checked" class in the context menu (#33437).

Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@19778 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Go MAEDA преди 4 години
родител
ревизия
87fe91ae52
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1
    1
      app/helpers/context_menus_helper.rb
  2. 1
    1
      test/functional/context_menus_controller_test.rb

+ 1
- 1
app/helpers/context_menus_helper.rb Целия файл

@@ -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)

+ 1
- 1
test/functional/context_menus_controller_test.rb Целия файл

@@ -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

Loading…
Отказ
Запис