|
|
@ -100625,6 +100625,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
ob || (ob = {}); |
|
|
|
ob || (ob = {}); |
|
|
|
ob.value || (ob.value = {}); |
|
|
|
ob.value || (ob.value = {}); |
|
|
|
|
|
|
|
var count = 0; |
|
|
|
if (BI.isNumber(ob)) { |
|
|
|
if (BI.isNumber(ob)) { |
|
|
|
this.editor.setState(ob); |
|
|
|
this.editor.setState(ob); |
|
|
|
} else if (BI.size(ob.value) === 0) { |
|
|
|
} else if (BI.size(ob.value) === 0) { |
|
|
@ -100634,8 +100635,16 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
BI.each(ob.value, function (name, children) { |
|
|
|
BI.each(ob.value, function (name, children) { |
|
|
|
var childNodes = getChildrenNode(children); |
|
|
|
var childNodes = getChildrenNode(children); |
|
|
|
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + "; "; |
|
|
|
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + "; "; |
|
|
|
|
|
|
|
if (childNodes !== "") { |
|
|
|
|
|
|
|
count++; |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.editor.setState(text); |
|
|
|
|
|
|
|
|
|
|
|
if (count > 20) { |
|
|
|
|
|
|
|
this.editor.setState(BI.Selection.Multi); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.editor.setState(text); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function getChildrenNode (ob) { |
|
|
|
function getChildrenNode (ob) { |
|
|
@ -100645,6 +100654,9 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
index++; |
|
|
|
index++; |
|
|
|
var childNodes = getChildrenNode(children); |
|
|
|
var childNodes = getChildrenNode(children); |
|
|
|
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ","); |
|
|
|
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ","); |
|
|
|
|
|
|
|
if (childNodes !== "") { |
|
|
|
|
|
|
|
count++; |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
return text; |
|
|
|
return text; |
|
|
|
} |
|
|
|
} |
|
|
|