diff options
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'); }; |