|
|
@ -51,7 +51,6 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, { |
|
|
|
callback(); |
|
|
|
callback(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
el: this.editor, |
|
|
|
el: this.editor, |
|
|
|
|
|
|
|
|
|
|
|
popup: BI.extend({ |
|
|
|
popup: BI.extend({ |
|
|
|
type: "bi.multi_select_search_pane", |
|
|
|
type: "bi.multi_select_search_pane", |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
@ -61,7 +60,13 @@ BI.MultiSelectSearcher = BI.inherit(BI.Widget, { |
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
itemsCreator: function (op, callback) { |
|
|
|
var keyword = self.editor.getValue(); |
|
|
|
var keyword = self.editor.getValue(); |
|
|
|
op.keywords = [keyword]; |
|
|
|
op.keywords = [keyword]; |
|
|
|
o.itemsCreator(op, callback); |
|
|
|
self.op = op; |
|
|
|
|
|
|
|
o.itemsCreator(op, function () { |
|
|
|
|
|
|
|
var args = Array.prototype.slice.call(arguments); |
|
|
|
|
|
|
|
if (BI.last(args) === self.op) { |
|
|
|
|
|
|
|
callback.apply(null, args); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
itemHeight: o.itemHeight, |
|
|
|
itemHeight: o.itemHeight, |
|
|
|
value: o.value |
|
|
|
value: o.value |
|
|
|