guy 8 years ago
parent
commit
559a024908
  1. 10
      bi/base.js
  2. 4
      bi/widget.js
  3. 10
      docs/base.js
  4. 4
      docs/widget.js
  5. 10
      src/base/tree/treeview.js
  6. 4
      src/widget/multiselecttree/multiselecttree.js

10
bi/base.js

@ -1937,6 +1937,16 @@ BI.TreeView = BI.inherit(BI.Pane, {
},
checkAll: function (checked) {
function setNode(children) {
BI.each(children, function (i, child) {
child.halfCheck = false;
setNode(child.children);
});
}
BI.each(this.nodes.getNodes(), function (i, node) {
node.halfCheck = false;
setNode(node.children);
});
this.nodes && this.nodes.checkAllNodes(checked);
},

4
bi/widget.js

@ -11442,9 +11442,7 @@ BI.MultiSelectTree = BI.inherit(BI.Widget, {
},
setValue: function (v) {
this.adapter.setValue({
value: v || {}
});
this.adapter.setValue(v);
},
stopSearch: function () {

10
docs/base.js

@ -1937,6 +1937,16 @@ BI.TreeView = BI.inherit(BI.Pane, {
},
checkAll: function (checked) {
function setNode(children) {
BI.each(children, function (i, child) {
child.halfCheck = false;
setNode(child.children);
});
}
BI.each(this.nodes.getNodes(), function (i, node) {
node.halfCheck = false;
setNode(node.children);
});
this.nodes && this.nodes.checkAllNodes(checked);
},

4
docs/widget.js

@ -11442,9 +11442,7 @@ BI.MultiSelectTree = BI.inherit(BI.Widget, {
},
setValue: function (v) {
this.adapter.setValue({
value: v || {}
});
this.adapter.setValue(v);
},
stopSearch: function () {

10
src/base/tree/treeview.js

@ -436,6 +436,16 @@ BI.TreeView = BI.inherit(BI.Pane, {
},
checkAll: function (checked) {
function setNode(children) {
BI.each(children, function (i, child) {
child.halfCheck = false;
setNode(child.children);
});
}
BI.each(this.nodes.getNodes(), function (i, node) {
node.halfCheck = false;
setNode(node.children);
});
this.nodes && this.nodes.checkAllNodes(checked);
},

4
src/widget/multiselecttree/multiselecttree.js

@ -139,9 +139,7 @@ BI.MultiSelectTree = BI.inherit(BI.Widget, {
},
setValue: function (v) {
this.adapter.setValue({
value: v || {}
});
this.adapter.setValue(v);
},
stopSearch: function () {

Loading…
Cancel
Save