diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-06 21:51:10 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-06 21:51:10 -0400 |
commit | f3f438a3ffed5f8594ead5d8cff60ee1c8a4673f (patch) | |
tree | 2fd70f70d48032719f4a23f148e36e1ce1a4e5dd /assets/js/src/Swimlane.js | |
parent | 28a4c86f7af4e7ed33ca19424c47e7b0ce054536 (diff) |
Repeat column headers for each swimlane
Diffstat (limited to 'assets/js/src/Swimlane.js')
-rw-r--r-- | assets/js/src/Swimlane.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/assets/js/src/Swimlane.js b/assets/js/src/Swimlane.js index 8dfc9d45..340b40a0 100644 --- a/assets/js/src/Swimlane.js +++ b/assets/js/src/Swimlane.js @@ -15,7 +15,8 @@ Swimlane.prototype.expand = function(swimlaneId) { localStorage.setItem(this.getStorageKey(), JSON.stringify(swimlaneIds)); - $('.swimlane-row-' + swimlaneId).css('display', 'table-row'); + $('.board-swimlane-columns-' + swimlaneId).css('display', 'table-row'); + $('.board-swimlane-tasks-' + swimlaneId).css('display', 'table-row'); $('.hide-icon-swimlane-' + swimlaneId).css('display', 'inline'); $('.show-icon-swimlane-' + swimlaneId).css('display', 'none'); }; @@ -28,7 +29,8 @@ Swimlane.prototype.collapse = function(swimlaneId) { localStorage.setItem(this.getStorageKey(), JSON.stringify(swimlaneIds)); } - $('.swimlane-row-' + swimlaneId).css('display', 'none'); + $('.board-swimlane-columns-' + swimlaneId + ':not(:first-child)').css('display', 'none'); + $('.board-swimlane-tasks-' + swimlaneId).css('display', 'none'); $('.hide-icon-swimlane-' + swimlaneId).css('display', 'none'); $('.show-icon-swimlane-' + swimlaneId).css('display', 'inline'); }; |