summaryrefslogtreecommitdiff
path: root/assets/js/src/BoardCollapsedMode.js
blob: 1be7a150c85acc8610f468a80007041bde28e1d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Kanboard.BoardCollapsedMode = function(app) {
    this.app = app;
};

Kanboard.BoardCollapsedMode.prototype.toggle = function() {
    var self = this;
    this.app.showLoadingIcon();

    $.ajax({
        cache: false,
        url: $('.filter-display-mode:not([style="display: none;"]) a').attr('href'),
        success: function(data) {
            $('.filter-display-mode').toggle();
            self.app.get("BoardDragAndDrop").refresh(data);
        }
    });
};