1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-03-10 11:13:06 +00:00

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
This commit is contained in:
Marius Balteanu 2025-03-13 20:58:00 +00:00
parent 9f26c417b6
commit d3ce7578ff

View File

@ -67,6 +67,7 @@ function collapseAllRowGroups(el) {
if ($(this).hasClass('group')) { if ($(this).hasClass('group')) {
$(this).removeClass('open'); $(this).removeClass('open');
$(this).find('.expander').switchClass('icon-expanded', 'icon-collapsed'); $(this).find('.expander').switchClass('icon-expanded', 'icon-collapsed');
updateSVGIcon($(this).find('.expander')[0], 'angle-right')
} else { } else {
$(this).hide(); $(this).hide();
} }
@ -79,6 +80,7 @@ function expandAllRowGroups(el) {
if ($(this).hasClass('group')) { if ($(this).hasClass('group')) {
$(this).addClass('open'); $(this).addClass('open');
$(this).find('.expander').switchClass('icon-collapsed', 'icon-expanded'); $(this).find('.expander').switchClass('icon-collapsed', 'icon-expanded');
updateSVGIcon($(this).find('.expander')[0], 'angle-down')
} else { } else {
$(this).show(); $(this).show();
} }