|
|
@ -218,16 +218,14 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, { |
|
|
|
_joinKeywords: function (keywords, callback) { |
|
|
|
_joinKeywords: function (keywords, callback) { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
this._assertValue(this.storeValue); |
|
|
|
this._assertValue(this.storeValue); |
|
|
|
if (!this._allData) { |
|
|
|
// 和复选下拉框同步,allData做缓存是会爆炸的
|
|
|
|
o.itemsCreator({ |
|
|
|
o.itemsCreator({ |
|
|
|
type: BI.MultiSelectInsertNoBarList.REQ_GET_ALL_DATA |
|
|
|
type: BI.MultiSelectInsertNoBarList.REQ_GET_ALL_DATA, |
|
|
|
}, function (ob) { |
|
|
|
keywords: keywords |
|
|
|
self._allData = BI.map(ob.items, "value"); |
|
|
|
}, function (ob) { |
|
|
|
digest(self._allData); |
|
|
|
var values = BI.map(ob.items, "value"); |
|
|
|
}); |
|
|
|
digest(values); |
|
|
|
} else { |
|
|
|
}); |
|
|
|
digest(this._allData); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function digest (items) { |
|
|
|
function digest (items) { |
|
|
|
var selectedMap = self._makeMap(items); |
|
|
|
var selectedMap = self._makeMap(items); |
|
|
@ -330,8 +328,6 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function () { |
|
|
|
populate: function () { |
|
|
|
this._count = null; |
|
|
|
|
|
|
|
this._allData = null; |
|
|
|
|
|
|
|
this.adapter.populate.apply(this.adapter, arguments); |
|
|
|
this.adapter.populate.apply(this.adapter, arguments); |
|
|
|
this.trigger.populate.apply(this.trigger, arguments); |
|
|
|
this.trigger.populate.apply(this.trigger, arguments); |
|
|
|
} |
|
|
|
} |
|
|
|