]> arthur.barton.de Git - netdata.git/commitdiff
allow the dashboard to be notified of bootstrap collapses; fixes #374
authorCosta Tsaousis <costa@tsaousis.gr>
Thu, 5 May 2016 17:19:59 +0000 (20:19 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Thu, 5 May 2016 17:19:59 +0000 (20:19 +0300)
web/dashboard.js

index 354d221f80f7a0f845ff816a0923f506800cb6e0..8897c2fe9aab21c8987a9e20bcd0615e1bc486a7 100644 (file)
                $('.modal').on('hidden.bs.modal', NETDATA.onscroll);
                $('.modal').on('shown.bs.modal', NETDATA.onscroll);
 
+               // bootstrap collapse switching
+               $('.collapse').on('hidden.bs.collapse', NETDATA.onscroll);
+               $('.collapse').on('shown.bs.collapse', NETDATA.onscroll);
+
                NETDATA.parseDom(NETDATA.chartRefresher);
        };