mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Fix prettier.
This commit is contained in:
parent
c93ea33d05
commit
f652b677d0
1 changed files with 4 additions and 4 deletions
|
|
@ -136,16 +136,16 @@ BlazeComponent.extendComponent({
|
||||||
initSortable(boardComponent, $listsDom);
|
initSortable(boardComponent, $listsDom);
|
||||||
|
|
||||||
// Minimize swimlanes start https://www.w3schools.com/howto/howto_js_accordion.asp
|
// Minimize swimlanes start https://www.w3schools.com/howto/howto_js_accordion.asp
|
||||||
var acc = document.getElementsByClassName('accordion');
|
let acc = document.getElementsByClassName('accordion');
|
||||||
var i;
|
let i;
|
||||||
for (i = 0; i < acc.length; i++) {
|
for (i = 0; i < acc.length; i++) {
|
||||||
acc[i].addEventListener('click', function() {
|
acc[i].addEventListener('click', function() {
|
||||||
this.classList.toggle('active');
|
this.classList.toggle('active');
|
||||||
var panel = this.nextElementSibling;
|
let panel = this.nextElementSibling;
|
||||||
if (panel.style.maxHeight) {
|
if (panel.style.maxHeight) {
|
||||||
panel.style.maxHeight = null;
|
panel.style.maxHeight = null;
|
||||||
} else {
|
} else {
|
||||||
panel.style.maxHeight = panel.scrollHeight + 'px';
|
panel.style.maxHeight = panel.scrollHeight.toString() + 'px';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue