-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change icons to svg #69
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div> | ||
<%= select_tag 'select-key', available_message_options(@setting, lang), id: 'key-selector' %> | ||
<span class='icon icon-help'><%= l(:text_description_of_search_box) %></span> | ||
<span class='icon icon-help'><%= sprite_icon('help', l(:text_description_of_search_box)) %></span> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
現状では There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 全体的に既存のアイコンを表示していたクラスはそのままにしていましたが、よく考えたらRedmine6より前との互換性はどのみちないのでクラスを維持しても意味が無いですね There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. .iconにはスタイルが適用されているため.iconのみ残します |
||
</div> | ||
<br> | ||
<div class='tabular'> | ||
|
@@ -45,8 +45,8 @@ function AddMessageInputField(key, val){ | |
$('<a>').attr({ | ||
class: 'icon icon-del clear-key-link', | ||
href: '#', | ||
onclick: '$(this).closest("p").remove();; return false;' | ||
}).appendTo($('#edit-custom-messages .tabular p:first')); | ||
onclick: '$(this).closest("p").remove(); return false;' | ||
}).html('<%= sprite_icon('del') %>').appendTo($('#edit-custom-messages .tabular p:first')); | ||
$('#key-selector').val('').change(); | ||
$('#key-selector option[value="' + key + '"]').prop("disabled", true).change(); | ||
setSelect2(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ | |
author_url 'https://github.com/farend' | ||
settings default: { custom_messages: {} } | ||
menu :admin_menu, :custom_messages, { controller: 'custom_message_settings', action: 'edit' }, | ||
caption: :label_custom_messages, html: { class: 'icon icon-edit' } | ||
requires_redmine version_or_higher: '3.2' | ||
caption: :label_custom_messages, html: { class: 'icon icon-edit' }, icon: 'edit' | ||
requires_redmine version_or_higher: '6.0' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍🏼 |
||
end | ||
|
||
Rails.application.config.i18n.load_path += Dir.glob(File.join(p.directory, 'config', 'locales', 'custom_messages', '*.rb')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
本題とはそれますが、
link_to_functionを通すと
$(this).closest("p").remove();; return false;
のようにセミコロンが自動で入るようだったのでセミコロンなしに直しています。