|
|
|
@ -89,7 +89,7 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
this.searcher.on(BI.Searcher.EVENT_SEARCHING, function () { |
|
|
|
|
var keywords = this.getKeywords(); |
|
|
|
|
self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_SEARCHING, keywords); |
|
|
|
|
self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_SEARCHING, keywords.length > 2000 ? keywords.slice(0, 2000).concat([BI.BlankSplitChar]) : keywords.slice(0, 2000)); |
|
|
|
|
}); |
|
|
|
|
if (BI.isNotNull(o.value)) { |
|
|
|
|
this.setState(o.value); |
|
|
|
@ -108,8 +108,19 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, {
|
|
|
|
|
this.searcher.stopSearch(); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getKeywordsLength: function () { |
|
|
|
|
var keywords = this.editor.getKeywords(); |
|
|
|
|
|
|
|
|
|
return keywords[keywords.length - 1] === BI.BlankSplitChar ? keywords.length - 1 : keywords.length; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getKeyword: function () { |
|
|
|
|
return this.editor.getKeyword(); |
|
|
|
|
var keywords = this.editor.getKeywords().slice(0, 2000); |
|
|
|
|
if (keywords[keywords.length - 1] === BI.BlankSplitChar) { |
|
|
|
|
keywords = keywords.slice(0, keywords.length - 1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return BI.isEmptyArray(keywords) ? "" : keywords[keywords.length - 1]; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
hasMatched: function () { |
|
|
|
|