mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Add/remove @icon-rtl@ class when switching between angle-down / angle-right SVG icons (#42465).
git-svn-id: https://svn.redmine.org/redmine/trunk@23656 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6951e569c4
commit
99cc321840
@ -43,10 +43,18 @@ function toggleRowGroup(el) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function toggleExpendCollapseIcon(el) {
|
function toggleExpendCollapseIcon(el) {
|
||||||
|
const svg = el.getElementsByTagName('svg').item(0)
|
||||||
|
|
||||||
|
if (svg === null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (el.classList.contains('icon-expanded')) {
|
if (el.classList.contains('icon-expanded')) {
|
||||||
updateSVGIcon(el, 'angle-down')
|
updateSVGIcon(svg, 'angle-down')
|
||||||
|
svg.classList.remove('icon-rtl')
|
||||||
} else {
|
} else {
|
||||||
updateSVGIcon(el, 'angle-right')
|
updateSVGIcon(svg, 'angle-right')
|
||||||
|
svg.classList.add('icon-rtl')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user