|
@@ -136,16 +136,16 @@ BlazeComponent.extendComponent({
|
|
|
initSortable(boardComponent, $listsDom);
|
|
|
|
|
|
// Minimize swimlanes start https://www.w3schools.com/howto/howto_js_accordion.asp
|
|
|
- let acc = document.getElementsByClassName('accordion');
|
|
|
+ const acc = document.getElementsByClassName('accordion');
|
|
|
let i;
|
|
|
for (i = 0; i < acc.length; i++) {
|
|
|
acc[i].addEventListener('click', function() {
|
|
|
this.classList.toggle('active');
|
|
|
- let panel = this.nextElementSibling;
|
|
|
+ const panel = this.nextElementSibling;
|
|
|
if (panel.style.maxHeight) {
|
|
|
panel.style.maxHeight = null;
|
|
|
} else {
|
|
|
- panel.style.maxHeight = panel.scrollHeight.toString() + 'px';
|
|
|
+ panel.style.maxHeight = `${panel.scrollHeight}px`;
|
|
|
}
|
|
|
});
|
|
|
}
|