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