diff --git a/dist/2.0/fineui.ie.js b/dist/2.0/fineui.ie.js index 739d9a875f..7ef01aa858 100644 --- a/dist/2.0/fineui.ie.js +++ b/dist/2.0/fineui.ie.js @@ -70081,7 +70081,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { }, 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(); o.itemsCreator(op, callback); }, @@ -70162,7 +70162,14 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { _digest: function (v) { 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 () { diff --git a/dist/2.0/fineui.js b/dist/2.0/fineui.js index 881449d9cc..3c46a8656d 100644 --- a/dist/2.0/fineui.js +++ b/dist/2.0/fineui.js @@ -70485,7 +70485,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { }, 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(); o.itemsCreator(op, callback); }, @@ -70566,7 +70566,14 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { _digest: function (v) { 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 () { diff --git a/dist/bundle.ie.js b/dist/bundle.ie.js index 739d9a875f..7ef01aa858 100644 --- a/dist/bundle.ie.js +++ b/dist/bundle.ie.js @@ -70081,7 +70081,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { }, 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(); o.itemsCreator(op, callback); }, @@ -70162,7 +70162,14 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { _digest: function (v) { 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 () { diff --git a/dist/bundle.js b/dist/bundle.js index 881449d9cc..3c46a8656d 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -70485,7 +70485,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { }, 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(); o.itemsCreator(op, callback); }, @@ -70566,7 +70566,14 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { _digest: function (v) { 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 () { diff --git a/dist/fineui.ie.js b/dist/fineui.ie.js index fcdd3c76c1..6127b5dd1e 100644 --- a/dist/fineui.ie.js +++ b/dist/fineui.ie.js @@ -70326,7 +70326,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { }, 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(); o.itemsCreator(op, callback); }, @@ -70407,7 +70407,14 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { _digest: function (v) { 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 () { diff --git a/dist/fineui.js b/dist/fineui.js index 152691c133..68b0dc99d7 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -70730,7 +70730,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { }, 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(); o.itemsCreator(op, callback); }, @@ -70811,7 +70811,14 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { _digest: function (v) { 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 () { diff --git a/dist/fineui_without_jquery_polyfill.js b/dist/fineui_without_jquery_polyfill.js index a870a65805..83709a7d06 100644 --- a/dist/fineui_without_jquery_polyfill.js +++ b/dist/fineui_without_jquery_polyfill.js @@ -53032,7 +53032,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { }, 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(); o.itemsCreator(op, callback); }, @@ -53113,7 +53113,14 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { _digest: function (v) { 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 () { diff --git a/dist/widget.js b/dist/widget.js index c4961c1802..37aece130f 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -8146,7 +8146,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { }, 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(); o.itemsCreator(op, callback); }, @@ -8227,7 +8227,14 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { _digest: function (v) { 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 () { diff --git a/src/widget/multilayersingletree/multilayersingletree.trigger.js b/src/widget/multilayersingletree/multilayersingletree.trigger.js index 2e4d2b09ab..192a87f36c 100644 --- a/src/widget/multilayersingletree/multilayersingletree.trigger.js +++ b/src/widget/multilayersingletree/multilayersingletree.trigger.js @@ -61,7 +61,7 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { }, 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(); o.itemsCreator(op, callback); }, @@ -142,7 +142,14 @@ BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, { _digest: function (v) { 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 () {