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