提交 8bb3f702 编写于 作者: Z ztree

fixed: singlepath

上级 6864aad3
此差异已折叠。
...@@ -75,11 +75,10 @@ ...@@ -75,11 +75,10 @@
var zTree = $.fn.zTree.getZTreeObj("treeDemo"), var zTree = $.fn.zTree.getZTreeObj("treeDemo"),
rootNodes, tmpRoot, tmpTId, i, j, n; rootNodes, tmpRoot, tmpTId, i, j, n;
if (!curExpandNode) { //very first expand: check if roots are already opened if (!curExpandNode) {
//by default and close if not my root tmpRoot = newNode;
tmpRoot = newNode; //just in case, don't break any original code
while (tmpRoot) { while (tmpRoot) {
tmpTId = tmpRoot.tId; //will be my root when while() ends tmpTId = tmpRoot.tId;
tmpRoot = tmpRoot.getParentNode(); tmpRoot = tmpRoot.getParentNode();
} }
rootNodes = zTree.getNodes(); rootNodes = zTree.getNodes();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册