Merge pull request #2067 from Lowhearth/treeview-expand

Treeview expand
pull/2091/head
Aigars Silkalns 6 years ago committed by GitHub
commit bf86dc34e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1077,7 +1077,7 @@ throw new Error('AdminLTE requires jQuery')
parent.addClass(ClassName.open);
tree.slideDown(this.options.animationSpeed, function () {
$(this.element).trigger(expandedEvent);
setTimeout(() => $(this.element).trigger(expandedEvent),0)
}.bind(this));
};
@ -1088,7 +1088,7 @@ throw new Error('AdminLTE requires jQuery')
parentLi.removeClass(ClassName.open);
tree.slideUp(this.options.animationSpeed, function () {
//tree.find(Selector.open + ' > ' + Selector.treeview).slideUp();
$(this.element).trigger(collapsedEvent);
setTimeout(() => $(this.element).trigger(collapsedEvent), 0);
}.bind(this));
};

Loading…
Cancel
Save