|
|
@ -16,7 +16,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
popup: {}, |
|
|
|
popup: {}, |
|
|
|
|
|
|
|
|
|
|
|
adapter: null, |
|
|
|
adapter: null, |
|
|
|
masker: {}, |
|
|
|
masker: {} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -136,7 +136,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
var names = BI.Func.getSortedResult(BI.keys(value)); |
|
|
|
var names = BI.Func.getSortedResult(BI.keys(value)); |
|
|
|
BI.each(names, function (idx, name) { |
|
|
|
BI.each(names, function (idx, name) { |
|
|
|
var childNodes = getChildrenNode(value[name]); |
|
|
|
var childNodes = getChildrenNode(value[name]); |
|
|
|
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + "; "; |
|
|
|
text += (name === "null" ? "" : (o.valueFormatter(name + "") || name)) + (childNodes === "" ? "" : (":" + childNodes)) + "; "; |
|
|
|
if (childNodes === "") { |
|
|
|
if (childNodes === "") { |
|
|
|
count++; |
|
|
|
count++; |
|
|
|
} |
|
|
|
} |
|
|
@ -156,7 +156,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
BI.each(names, function (idx, name) { |
|
|
|
BI.each(names, function (idx, name) { |
|
|
|
index++; |
|
|
|
index++; |
|
|
|
var childNodes = getChildrenNode(ob[name]); |
|
|
|
var childNodes = getChildrenNode(ob[name]); |
|
|
|
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ","); |
|
|
|
text += (name === "null" ? "" : (o.valueFormatter(name + "") || name)) + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ","); |
|
|
|
if (childNodes === "") { |
|
|
|
if (childNodes === "") { |
|
|
|
count++; |
|
|
|
count++; |
|
|
|
} |
|
|
|
} |
|
|
@ -165,7 +165,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getState: function() { |
|
|
|
getState: function () { |
|
|
|
return this.editor.getState(); |
|
|
|
return this.editor.getState(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -193,4 +193,4 @@ BI.MultiTreeSearcher.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.MultiTreeSearcher.EVENT_START = "EVENT_START"; |
|
|
|
BI.MultiTreeSearcher.EVENT_START = "EVENT_START"; |
|
|
|
BI.MultiTreeSearcher.EVENT_STOP = "EVENT_STOP"; |
|
|
|
BI.MultiTreeSearcher.EVENT_STOP = "EVENT_STOP"; |
|
|
|
BI.MultiTreeSearcher.EVENT_PAUSE = "EVENT_PAUSE"; |
|
|
|
BI.MultiTreeSearcher.EVENT_PAUSE = "EVENT_PAUSE"; |
|
|
|
BI.shortcut("bi.multi_tree_searcher", BI.MultiTreeSearcher); |
|
|
|
BI.shortcut("bi.multi_tree_searcher", BI.MultiTreeSearcher); |
|
|
|