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 | |
parent | 28a4c86f7af4e7ed33ca19424c47e7b0ce054536 (diff) |
Repeat column headers for each swimlane
Diffstat (limited to 'assets/js/src')
-rw-r--r-- | assets/js/src/Board.js | 2 | ||||
-rw-r--r-- | assets/js/src/Swimlane.js | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/assets/js/src/Board.js b/assets/js/src/Board.js index 5370344c..75b0614a 100644 --- a/assets/js/src/Board.js +++ b/assets/js/src/Board.js @@ -231,7 +231,7 @@ Board.prototype.toggleCollapsedMode = function() { Board.prototype.restoreColumnViewMode = function() { var self = this; - $("tr:first th").each(function() { + $(".board-column-header").each(function() { var columnId = $(this).data('column-id'); if (localStorage.getItem("hidden_column_" + columnId)) { self.hideColumn(columnId); 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'); }; |