summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2025-03-13 20:58:00 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2025-03-13 20:58:00 +0000
commitd3ce7578ff42e6fc633db46a219f39a700396790 (patch)
treeaec323db469503c1d968cb9587047bfcd22ab8a7
parent9f26c417b6ab57e08111b25e73d5cf638e7bab28 (diff)
downloadredmine-d3ce7578ff42e6fc633db46a219f39a700396790.tar.gz
redmine-d3ce7578ff42e6fc633db46a219f39a700396790.zip
Fixes expander icons not switch in Collapse all/Expand all (#42369).
Patch by Anton Nekrasov (user:antror). git-svn-id: https://svn.redmine.org/redmine/trunk@23547 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/assets/javascripts/application.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js
index c7c3e2fef..1314257ab 100644
--- a/app/assets/javascripts/application.js
+++ b/app/assets/javascripts/application.js
@@ -67,6 +67,7 @@ function collapseAllRowGroups(el) {
if ($(this).hasClass('group')) {
$(this).removeClass('open');
$(this).find('.expander').switchClass('icon-expanded', 'icon-collapsed');
+ updateSVGIcon($(this).find('.expander')[0], 'angle-right')
} else {
$(this).hide();
}
@@ -79,6 +80,7 @@ function expandAllRowGroups(el) {
if ($(this).hasClass('group')) {
$(this).addClass('open');
$(this).find('.expander').switchClass('icon-collapsed', 'icon-expanded');
+ updateSVGIcon($(this).find('.expander')[0], 'angle-down')
} else {
$(this).show();
}