diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-11-17 01:59:57 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-11-17 01:59:57 +0200 |
commit | f652b677d0fa9c8bbeef7ca366aebd5f5a149d02 (patch) | |
tree | 14267005c3c01558f48193f1fb3c3888307a03a8 | |
parent | c93ea33d05bed042a744fc11e4730c9e5ecdb93b (diff) | |
download | wekan-f652b677d0fa9c8bbeef7ca366aebd5f5a149d02.tar.gz wekan-f652b677d0fa9c8bbeef7ca366aebd5f5a149d02.tar.bz2 wekan-f652b677d0fa9c8bbeef7ca366aebd5f5a149d02.zip |
Fix prettier.
-rw-r--r-- | client/components/swimlanes/swimlanes.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/components/swimlanes/swimlanes.js b/client/components/swimlanes/swimlanes.js index 2cba5b56..f4e33ddd 100644 --- a/client/components/swimlanes/swimlanes.js +++ b/client/components/swimlanes/swimlanes.js @@ -136,16 +136,16 @@ BlazeComponent.extendComponent({ initSortable(boardComponent, $listsDom); // Minimize swimlanes start https://www.w3schools.com/howto/howto_js_accordion.asp - var acc = document.getElementsByClassName('accordion'); - var i; + let acc = document.getElementsByClassName('accordion'); + let i; for (i = 0; i < acc.length; i++) { acc[i].addEventListener('click', function() { this.classList.toggle('active'); - var panel = this.nextElementSibling; + let panel = this.nextElementSibling; if (panel.style.maxHeight) { panel.style.maxHeight = null; } else { - panel.style.maxHeight = panel.scrollHeight + 'px'; + panel.style.maxHeight = panel.scrollHeight.toString() + 'px'; } }); } |