Skip to content

Commit 5880f25

Browse files
committed
Compatible with Redmine 3.2
1 parent d6e1945 commit 5880f25

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/helpers/custom_message_settings_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def normal_mode_input_fields(setting, lang)
1414
content += content_tag(:p) do
1515
content_tag(:label, k) +
1616
text_field_tag("settings[custom_messages[#{k}]]", v.to_s) +
17-
link_to_function('', '$(this).closest("p").remove();', class: 'icon-only icon-del clear-key-link')
17+
link_to_function('', '$(this).closest("p").remove();', class: 'icon icon-del clear-key-link')
1818
end
1919
end
2020
content

app/views/custom_message_settings/_messages.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $('#key-selector').on('select2:select', function (e) {
2121
name: 'settings[custom_messages[' + key + ']]'
2222
}).appendTo($('#edit-custom-messages .tabular p:first'));
2323
$('<a>').attr({
24-
class: 'icon-only icon-del clear-key-link',
24+
class: 'icon icon-del clear-key-link',
2525
href: '#',
2626
onclick: '$(this).closest("p").remove();; return false;'
2727
}).appendTo($('#edit-custom-messages .tabular p:first'));

init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
settings default: { custom_messages: {} }
55
menu :admin_menu, :custom_messages, { controller: 'custom_message_settings', action: 'edit' },
66
caption: :label_custom_messages, html: { class: 'icon icon-edit' }
7-
requires_redmine version_or_higher: '3.3.0'
7+
requires_redmine version_or_higher: '3.2'
88
end
99

1010
Rails.application.config.i18n.load_path += Dir.glob(File.join(p.directory, 'config', 'locales', 'custom_messages', '*.rb'))

0 commit comments

Comments
 (0)