summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-11-17 14:03:39 +0200
committerLauri Ojansivu <x@xet7.org>2019-11-17 14:03:39 +0200
commit34bfb09c85ead9d0db4fd8b5fb9f923593bcb25a (patch)
tree64cd568e7ec3574c4d4bebc6c193579b166d8544
parentf652b677d0fa9c8bbeef7ca366aebd5f5a149d02 (diff)
downloadwekan-34bfb09c85ead9d0db4fd8b5fb9f923593bcb25a.tar.gz
wekan-34bfb09c85ead9d0db4fd8b5fb9f923593bcb25a.tar.bz2
wekan-34bfb09c85ead9d0db4fd8b5fb9f923593bcb25a.zip
Fix prettier.
-rw-r--r--client/components/swimlanes/swimlanes.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/components/swimlanes/swimlanes.js b/client/components/swimlanes/swimlanes.js
index f4e33ddd..56d8fb81 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
- 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`;
}
});
}