windy 5 years ago
parent
commit
14a4742dae
  1. 2
      src/base/tree/ztree/asynctree.js
  2. 2
      src/base/tree/ztree/treerender.service.js

2
src/base/tree/ztree/asynctree.js

@ -150,7 +150,7 @@ BI.AsyncTree = BI.inherit(BI.TreeView, {
function callback(nodes, hasNext) { function callback(nodes, hasNext) {
if (hasNext) { if (hasNext) {
self.service.pushNodeList(treeNode.tId, self.nodes, getNodes); self.service.pushNodeList(treeNode.tId, getNodes);
} else { } else {
self.service.removeNodeList(treeNode.tId); self.service.removeNodeList(treeNode.tId);
} }

2
src/base/tree/ztree/treerender.service.js

@ -54,7 +54,7 @@
return nodeList.length === 0 || nodeList.css("display") === "none"; return nodeList.length === 0 || nodeList.css("display") === "none";
}, },
pushNodeList: function (tId, nodes, populate) { pushNodeList: function (tId, populate) {
var self = this; var self = this;
if (!BI.has(this.nodeLists, tId)) { if (!BI.has(this.nodeLists, tId)) {
this.nodeLists[tId] = { this.nodeLists[tId] = {

Loading…
Cancel
Save