|
|
|
@ -104,6 +104,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
self.combo.setValue(self.storeValue); |
|
|
|
|
assertShowValue(); |
|
|
|
|
} |
|
|
|
|
self._dataChange = true; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_SEARCHING); |
|
|
|
@ -119,6 +120,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
assertShowValue(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
self._dataChange = true; |
|
|
|
|
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM); |
|
|
|
|
}); |
|
|
|
|
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () { |
|
|
|
@ -148,6 +150,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
listeners: [{ |
|
|
|
|
eventName: BI.MultiSelectPopupView.EVENT_CHANGE, |
|
|
|
|
action: function () { |
|
|
|
|
self._dataChange = true; |
|
|
|
|
self.storeValue = this.getValue(); |
|
|
|
|
self._adjust(function () { |
|
|
|
|
assertShowValue(); |
|
|
|
@ -186,6 +189,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
|
self._dataChange = false;// 标记数据是否发生变化
|
|
|
|
|
this.setValue(self.storeValue); |
|
|
|
|
BI.nextTick(function () { |
|
|
|
|
self._populate(); |
|
|
|
@ -199,7 +203,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
if (self.requesting === true) { |
|
|
|
|
self.wants2Quit = true; |
|
|
|
|
} else { |
|
|
|
|
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CONFIRM); |
|
|
|
|
self._dataChange && self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CONFIRM); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -218,7 +222,6 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.numberCounter = BI.createWidget({ |
|
|
|
|
type: "bi.multi_select_check_selected_switcher", |
|
|
|
|
masker: { |
|
|
|
@ -260,7 +263,6 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this, |
|
|
|
@ -314,6 +316,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
assertShowValue(); |
|
|
|
|
self.populate(); |
|
|
|
|
self._setStartValue(""); |
|
|
|
|
self._dataChange = true; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -407,7 +410,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
callback(); |
|
|
|
|
function adjust () { |
|
|
|
|
if (self.wants2Quit === true) { |
|
|
|
|
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CONFIRM); |
|
|
|
|
self._dataChange && self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CONFIRM); |
|
|
|
|
self.wants2Quit = false; |
|
|
|
|
} |
|
|
|
|
self.requesting = false; |
|
|
|
|