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:
@@ -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));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user