|
|
|
@ -215,7 +215,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
digest(values); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
function digest (items) { |
|
|
|
|
function digest(items) { |
|
|
|
|
var selectedMap = self._makeMap(items); |
|
|
|
|
BI.each(keywords, function (i, val) { |
|
|
|
|
if (BI.isNotNull(selectedMap[val])) { |
|
|
|
@ -235,7 +235,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
text: o.valueFormatter(v) || v, |
|
|
|
|
value: v |
|
|
|
|
}; |
|
|
|
|
}), this.trigger.getKey()); |
|
|
|
|
}), this.trigger.getKeyword()); |
|
|
|
|
var change = false; |
|
|
|
|
var map = this._makeMap(this.storeValue.value); |
|
|
|
|
BI.each(BI.concat(result.match, result.find), function (i, obj) { |
|
|
|
@ -251,7 +251,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
} |
|
|
|
|
o.itemsCreator({ |
|
|
|
|
type: BI.MultiSelectList.REQ_GET_ALL_DATA, |
|
|
|
|
keywords: [this.trigger.getKey()], |
|
|
|
|
keywords: [this.trigger.getKeyword()], |
|
|
|
|
selectedValues: BI.filter(this.storeValue.value, function (_i, v) { |
|
|
|
|
return !BI.contains(res.value, v); |
|
|
|
|
}), |
|
|
|
@ -288,7 +288,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
|
|
|
|
|
callback(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function adjust () { |
|
|
|
|
function adjust() { |
|
|
|
|
if (self.storeValue.type === BI.Selection.All && self.storeValue.value.length >= self._count) { |
|
|
|
|
self.storeValue = { |
|
|
|
|
type: BI.Selection.Multi, |
|
|
|
|