Use ajax requests for board collapse/expand

This commit is contained in:
Frederic Guillot
2015-07-12 16:51:20 -04:00
parent 59df72d476
commit bf59465b10
4 changed files with 74 additions and 47 deletions

View File

@@ -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() {