Browse Source

无jira任务 style:删除多余的提交

es6
Tangjinxia 4 years ago
parent
commit
15084649b9
  1. 17
      src/widget/multiselect/trigger/searcher.multiselect.insert.js

17
src/widget/multiselect/trigger/searcher.multiselect.insert.js

@ -55,9 +55,6 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, {
popup: BI.extend({
type: "bi.multi_select_search_insert_pane",
ref: function (_ref) {
self.searchPane = _ref;
},
valueFormatter: o.valueFormatter,
keywordGetter: function () {
return self.editor.getValue();
@ -73,19 +70,7 @@ BI.MultiSelectInsertSearcher = BI.inherit(BI.Widget, {
listeners: [{
eventName: BI.MultiSelectSearchInsertPane.EVENT_ADD_ITEM,
action: function () {
var keyword = self.searcher.getKeyword();
self.storeValue = self.getValue();
if (!self.searcher.hasMatched()) {
if (self.storeValue.type === BI.Selection.Multi) {
BI.pushDistinct(self.storeValue.value, keyword);
}
self.searchPane.setVisible(false);
self.setValue(self.storeValue);
self.populate();
if (self.storeValue.type === BI.Selection.Multi) {
self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_ADD_ITEM);
}
}
self.fireEvent(BI.MultiSelectInsertSearcher.EVENT_ADD_ITEM);
}
}]
}, o.popup),

Loading…
Cancel
Save