|
|
|
@ -64,11 +64,9 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, {
|
|
|
|
|
self._showAdapter(); |
|
|
|
|
self.adapter.setValue(self.storeValue); |
|
|
|
|
self.adapter.populate(); |
|
|
|
|
if (self.storeValue.type === BI.Selection.Multi) { |
|
|
|
|
self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
this.searcherPane.setVisible(false); |
|
|
|
@ -211,7 +209,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Single, {
|
|
|
|
|
var selectedMap = self._makeMap(items); |
|
|
|
|
BI.each(keywords, function (i, val) { |
|
|
|
|
if (BI.isNotNull(selectedMap[val])) { |
|
|
|
|
self.storeValue.type === BI.Selection.Single ? BI.pushDistinct(self.storeValue.value, val) : BI.remove(self.storeValue.value, val); |
|
|
|
|
BI.pushDistinct(self.storeValue.value, val) |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
callback(); |
|
|
|
|