mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Remove 1st implementation of collapse swimlanes. I will do it
differently in next 2nd implementation. Thanks to xet7 !
This commit is contained in:
parent
d497b75c1d
commit
d5a8ec1c36
4 changed files with 0 additions and 58 deletions
|
|
@ -20,28 +20,6 @@ template(name="swimlane")
|
|||
if currentUser.isBoardMember
|
||||
unless currentUser.isCommentOnly
|
||||
+addListForm
|
||||
//if collapseSwimlane
|
||||
// // Minimize swimlanes next 2 lines below https://www.w3schools.com/howto/howto_js_accordion.asp
|
||||
// button(class="accordion")
|
||||
// div(class="panel")
|
||||
// .swimlane.js-lists.js-swimlane
|
||||
// if isMiniScreen
|
||||
// if currentListIsInThisSwimlane _id
|
||||
// +list(currentList)
|
||||
// unless currentList
|
||||
// each lists
|
||||
// +miniList(this)
|
||||
// if currentUser.isBoardMember
|
||||
// unless currentUser.isCommentOnly
|
||||
// +addListForm
|
||||
// else
|
||||
// each lists
|
||||
// +list(this)
|
||||
// if currentCardIsInThisList _id ../_id
|
||||
// +cardDetails(currentCard)
|
||||
// if currentUser.isBoardMember
|
||||
// unless currentUser.isCommentOnly
|
||||
// +addListForm
|
||||
|
||||
template(name="listsGroup")
|
||||
.swimlane.list-group.js-lists
|
||||
|
|
|
|||
|
|
@ -146,24 +146,6 @@ BlazeComponent.extendComponent({
|
|||
}
|
||||
|
||||
initSortable(boardComponent, $listsDom);
|
||||
|
||||
if (cookies.has('collapseSwimlane')) {
|
||||
// Minimize swimlanes start https://www.w3schools.com/howto/howto_js_accordion.asp
|
||||
const acc = document.getElementsByClassName('accordion');
|
||||
let i;
|
||||
for (i = 0; i < acc.length; i++) {
|
||||
acc[i].addEventListener('click', function() {
|
||||
this.classList.toggle('active');
|
||||
const panel = this.nextElementSibling;
|
||||
if (panel.style.maxHeight) {
|
||||
panel.style.maxHeight = null;
|
||||
} else {
|
||||
panel.style.maxHeight = `${panel.scrollHeight}px`;
|
||||
}
|
||||
});
|
||||
}
|
||||
// Minimize swimlanes end https://www.w3schools.com/howto/howto_js_accordion.asp
|
||||
}
|
||||
},
|
||||
onCreated() {
|
||||
this.draggingActive = new ReactiveVar(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue