|
|
@ -74,7 +74,9 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_ADD_ITEM, function () { |
|
|
|
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_ADD_ITEM, function () { |
|
|
|
if (!this.getSearcher().hasMatched()) { |
|
|
|
if (!this.getSearcher().hasMatched()) { |
|
|
|
self._addItem(assertShowValue); |
|
|
|
self._addItem(assertShowValue); |
|
|
|
|
|
|
|
var addedValue = this.getSearcher().getKeyword(); |
|
|
|
self._stopEditing(); |
|
|
|
self._stopEditing(); |
|
|
|
|
|
|
|
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_ADD_ITEM, addedValue); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING, function (keywords) { |
|
|
|
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_SEARCHING, function (keywords) { |
|
|
@ -456,5 +458,6 @@ BI.MultiSelectInsertCombo.EVENT_STOP = "EVENT_STOP"; |
|
|
|
BI.MultiSelectInsertCombo.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
BI.MultiSelectInsertCombo.EVENT_SEARCHING = "EVENT_SEARCHING"; |
|
|
|
BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM"; |
|
|
|
BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM = "EVENT_CLICK_ITEM"; |
|
|
|
BI.MultiSelectInsertCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.MultiSelectInsertCombo.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
|
|
|
|
BI.MultiSelectInsertCombo.EVENT_ADD_ITEM = "EVENT_ADD_ITEM"; |
|
|
|
|
|
|
|
|
|
|
|
BI.shortcut("bi.multi_select_insert_combo", BI.MultiSelectInsertCombo); |
|
|
|
BI.shortcut("bi.multi_select_insert_combo", BI.MultiSelectInsertCombo); |