Fix collapse button

pull/1/head
yflory 5 years ago
parent e68ad7cf5f
commit 9ad1477d1b

@ -3004,12 +3004,13 @@ define([
name: 'files', name: 'files',
icon: 'fa-sitemap', icon: 'fa-sitemap',
drawer: false, drawer: false,
}, function () {
APP.$tree.toggle();
checkCollapseButton();
}); });
checkCollapseButton(); checkCollapseButton();
APP.toolbar.$bottomL.append(APP.$collapseButton); APP.toolbar.$bottomL.append(APP.$collapseButton);
APP.$collapseButton.off('click').on('click', function () {
APP.$tree.toggle();
checkCollapseButton();
})
}; };
var createToolbar = function () { var createToolbar = function () {
var $toolbar = APP.toolbar.$bottom; var $toolbar = APP.toolbar.$bottom;

Loading…
Cancel
Save