|
|
@ -150,9 +150,10 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
function getChildrenNode (ob) { |
|
|
|
function getChildrenNode (ob) { |
|
|
|
var text = ""; |
|
|
|
var text = ""; |
|
|
|
var index = 0, size = BI.size(ob); |
|
|
|
var index = 0, size = BI.size(ob); |
|
|
|
BI.each(ob, function (name, children) { |
|
|
|
var names = BI.Func.getSortedResult(BI.keys(ob)); |
|
|
|
|
|
|
|
BI.each(names, function (idx, name) { |
|
|
|
index++; |
|
|
|
index++; |
|
|
|
var childNodes = getChildrenNode(children); |
|
|
|
var childNodes = getChildrenNode(ob[name]); |
|
|
|
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ","); |
|
|
|
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ","); |
|
|
|
if (childNodes === "") { |
|
|
|
if (childNodes === "") { |
|
|
|
count++; |
|
|
|
count++; |
|
|
|