未验证 提交 bf86dc34 编写于 作者: A Aigars Silkalns 提交者: GitHub

Merge pull request #2067 from Lowhearth/treeview-expand

Treeview expand
......@@ -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));
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册