|
|
@ -70081,7 +70081,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
popup: { |
|
|
|
popup: { |
|
|
|
type: "bi.multilayer_single_tree_popup", |
|
|
|
type: "bi.multilayer_single_tree_popup", |
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
itemsCreator: o.itemsCreator === BI.emptyFn ? BI.emptyFn : function (op, callback) { |
|
|
|
op.keyword = self.editor.getValue(); |
|
|
|
op.keyword = self.editor.getValue(); |
|
|
|
o.itemsCreator(op, callback); |
|
|
|
o.itemsCreator(op, callback); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -70162,7 +70162,14 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { |
|
|
|
|
|
|
|
|
|
|
|
_digest: function (v) { |
|
|
|
_digest: function (v) { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
return o.valueFormatter(v) || o.text; |
|
|
|
if(o.itemsCreator === BI.emptyFn) { |
|
|
|
|
|
|
|
var result = BI.find(o.items, function (i, item) { |
|
|
|
|
|
|
|
return item.value === v; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return BI.isNotNull(result) ? result.text : o.text; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return o.valueFormatter(v); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
stopEditing: function () { |
|
|
|
stopEditing: function () { |
|
|
|