diff options
Diffstat (limited to 'assets/js/src')
-rw-r--r-- | assets/js/src/board.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/assets/js/src/board.js b/assets/js/src/board.js index 26d92c05..ff1054cd 100644 --- a/assets/js/src/board.js +++ b/assets/js/src/board.js @@ -373,14 +373,12 @@ Kanboard.Board = (function() { function compactview_reload() { - var compactview = Kanboard.GetStorageItem("compactview"); - $("#board-container,#board th,#board td").removeClass (); - if (compactview == '1') { - $('#board-container').addClass ('board-container-compact'); - $("#board th,#board td").addClass ('board-column-compact'); + if (Kanboard.GetStorageItem("compactview") == '1') { + $("#board-container").removeClass ("board-container-wide").addClass ("board-container-compact"); + $("#board th,#board td").removeClass ("board-column-wide").addClass ("board-column-compact"); } else { - $('#board-container').addClass ('board-container-wide'); - $("#board th,#board td").addClass ('board-column-wide'); + $("#board-container").removeClass ("board-container-compact").addClass ("board-container-wide"); + $("#board th,#board td").removeClass ("board-column-compact").addClass ("board-column-wide"); } } |