Fixed multilevel menu inconguence on opening/closing (#1817)

pull/1807/merge
Ivan 7 years ago committed by Abdullah Almsaeed
parent 79057e15c1
commit e38376ec15

@ -90,10 +90,10 @@
Tree.prototype.collapse = function (tree, parentLi) {
var collapsedEvent = $.Event(Event.collapsed);
tree.find(Selector.open).removeClass(ClassName.open);
//tree.find(Selector.open).removeClass(ClassName.open);
parentLi.removeClass(ClassName.open);
tree.slideUp(this.options.animationSpeed, function () {
tree.find(Selector.open + ' > ' + Selector.treeview).slideUp();
//tree.find(Selector.open + ' > ' + Selector.treeview).slideUp();
$(this.element).trigger(collapsedEvent);
}.bind(this));
};

@ -1074,16 +1074,16 @@ throw new Error('AdminLTE requires jQuery')
Tree.prototype.collapse = function (tree, parentLi) {
var collapsedEvent = $.Event(Event.collapsed);
tree.find(Selector.open).removeClass(ClassName.open);
//tree.find(Selector.open).removeClass(ClassName.open);
parentLi.removeClass(ClassName.open);
tree.slideUp(this.options.animationSpeed, function () {
tree.find(Selector.open + ' > ' + Selector.treeview).slideUp();
//tree.find(Selector.open + ' > ' + Selector.treeview).slideUp();
$(this.element).trigger(collapsedEvent);
}.bind(this));
};
// Private
Tree.prototype._setUpListeners = function () {
var that = this;

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save