fixed drag and drop breaking adminlte's design

- updated ControlSidebar.js to hide control sidebar instead of only moving it
- updated dashboard.js to use containment in sortable()
- added display none to control sidebar content in index.html

(Closes #1924)
This commit is contained in:
REJack
2019-06-06 10:59:10 +02:00
parent 3254b3b60f
commit 2226c0e7cf
5 changed files with 9 additions and 2 deletions

View File

@@ -71,17 +71,20 @@
};
ControlSidebar.prototype.expand = function () {
$(Selector.sidebar).show();
if (!this.options.slide) {
$('body').addClass(ClassName.open);
} else {
$(Selector.sidebar).addClass(ClassName.open);
}
$(this.element).trigger($.Event(Event.expanded));
};
ControlSidebar.prototype.collapse = function () {
$('body, ' + Selector.sidebar).removeClass(ClassName.open);
$(Selector.sidebar).fadeOut();
$(this.element).trigger($.Event(Event.collapsed));
};