summaryrefslogtreecommitdiff
path: root/assets/js/src
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-07-12 16:51:20 -0400
committerFrederic Guillot <fred@kanboard.net>2015-07-12 16:51:20 -0400
commitbf59465b10c3f360d8c860b55bcd40d78af74f4a (patch)
treee1a1178444db243cd1465ec8684ff20283ab7165 /assets/js/src
parent59df72d4763bbe640543f3026f33c15363e14116 (diff)
Use ajax requests for board collapse/expand
Diffstat (limited to 'assets/js/src')
-rw-r--r--assets/js/src/board.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/assets/js/src/board.js b/assets/js/src/board.js
index d86610ef..45dbd24a 100644
--- a/assets/js/src/board.js
+++ b/assets/js/src/board.js
@@ -20,7 +20,19 @@
});
Mousetrap.bind("s", function() {
- window.location = $(".board-display-mode").attr("href");
+ $.ajax({
+ cache: false,
+ url: $('.filter-display-mode:not([style="display: none;"]) a').attr('href'),
+ success: function(data) {
+ $("#board-container").remove();
+ $("#main").append(data);
+ Kanboard.InitAfterAjax();
+ board_unload_events();
+ board_load_events();
+ compactview_reload();
+ $('.filter-display-mode').toggle();
+ }
+ });
});
Mousetrap.bind("c", function() {