diff options
author | Go MAEDA <maeda@farend.jp> | 2019-06-02 08:48:00 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-06-02 08:48:00 +0000 |
commit | bbb755e95d1a6d24b65f7bfcfaf12ac527926423 (patch) | |
tree | 582810e7c0cda46d4e6813ef99e1f3a8033deffc /public | |
parent | 82ba14cfbac946f2f6b201e4cd4074493826f246 (diff) | |
download | redmine-bbb755e95d1a6d24b65f7bfcfaf12ac527926423.tar.gz redmine-bbb755e95d1a6d24b65f7bfcfaf12ac527926423.zip |
Switch between toggle plus and minus icons for toggle multi select (#31496).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18214 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/application.js | 5 | ||||
-rw-r--r-- | public/stylesheets/application.css | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 5dfd260fc..25dc501ea 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -121,7 +121,8 @@ function initFilters() { toggleFilter($(this).val()); }); $('#filters-table').on('click', '.toggle-multiselect', function() { - toggleMultiSelect($(this).siblings('select')); + toggleMultiSelect($(this).siblings('select')) + $(this).toggleClass('icon-toggle-plus icon-toggle-minus') }); $('#filters-table').on('keypress', 'input[type=text]', function(e) { if (e.keyCode == 13) $(this).closest('form').submit(); @@ -188,7 +189,7 @@ function buildFilterRow(field, operator, values) { case "list_subprojects": tr.find('td.values').append( '<span style="display:none;"><select class="value" id="values_'+fieldId+'_1" name="v['+field+'][]"></select>' + - ' <span class="toggle-multiselect"> </span></span>' + ' <span class="toggle-multiselect icon-only icon-toggle-plus"> </span></span>' ); select = tr.find('td.values select'); if (values.length > 1) { select.attr('multiple', true); } diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 9c7ebfb7a..f08ef30b6 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -531,7 +531,7 @@ fieldset#filters td.values select {min-width:130px;} .add-filter {width:35%; float:right; text-align: right; vertical-align: top;} #issue_is_private_wrap {float:right; margin-right:1em;} -.toggle-multiselect {background: url(../images/bullet_toggle_plus.png) no-repeat 0% 40%; padding-left:16px; margin-left:0; margin-right:5px; cursor:pointer;} +.toggle-multiselect { no-repeat 0% 40%; padding-left:16px; margin-left:0; margin-right:5px; cursor:pointer;} .buttons { font-size: 0.9em; margin-bottom: 1.4em; margin-top: 1em; } div#issue-changesets {float:right; width:45%; margin-left: 1em; margin-bottom: 1em; background: #fff; padding-left: 1em; font-size: 90%;} @@ -1502,6 +1502,8 @@ td.gantt_selected_column .gantt_hdr,.gantt_selected_column_container { .icon-bookmark-off { background-image: url(../images/tag_blue_add.png); } .icon-sorted-asc { background-image: url(../images/arrow_down.png); } .icon-sorted-desc { background-image: url(../images/arrow_up.png); } +.icon-toggle-plus { background: url(../images/bullet_toggle_plus.png) } +.icon-toggle-minus { background: url(../images/bullet_toggle_minus.png) } .icon-file { background-image: url(../images/files/default.png); } .icon-file.text-plain { background-image: url(../images/files/text.png); } |