Browse Source

树控件

master
windy 8 years ago
parent
commit
19579f2ce8
  1. 8
      bi/widget.js
  2. 8
      docs/widget.js
  3. 8
      src/widget/multitree/multi.tree.combo.js

8
bi/widget.js

@ -11826,18 +11826,18 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
if (isSearching()) { if (isSearching()) {
self.trigger.stopEditing(); self.trigger.stopEditing();
self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM); self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM);
return; }else{
}
if (isPopupView()) { if (isPopupView()) {
self.trigger.stopEditing(); self.trigger.stopEditing();
self.storeValue = {value: self.combo.getValue()}; self.storeValue = {value: self.combo.getValue()};
if (clear === true) { if (clear === true) {
self.storeValue = {value: {}}; self.storeValue = {value: {}};
clear = false;
change = false;
} }
self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM); self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM);
} }
}
clear = false;
change = false;
}); });
var triggerBtn = BI.createWidget({ var triggerBtn = BI.createWidget({

8
docs/widget.js

@ -11826,18 +11826,18 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
if (isSearching()) { if (isSearching()) {
self.trigger.stopEditing(); self.trigger.stopEditing();
self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM); self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM);
return; }else{
}
if (isPopupView()) { if (isPopupView()) {
self.trigger.stopEditing(); self.trigger.stopEditing();
self.storeValue = {value: self.combo.getValue()}; self.storeValue = {value: self.combo.getValue()};
if (clear === true) { if (clear === true) {
self.storeValue = {value: {}}; self.storeValue = {value: {}};
clear = false;
change = false;
} }
self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM); self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM);
} }
}
clear = false;
change = false;
}); });
var triggerBtn = BI.createWidget({ var triggerBtn = BI.createWidget({

8
src/widget/multitree/multi.tree.combo.js

@ -188,18 +188,18 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
if (isSearching()) { if (isSearching()) {
self.trigger.stopEditing(); self.trigger.stopEditing();
self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM); self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM);
return; }else{
}
if (isPopupView()) { if (isPopupView()) {
self.trigger.stopEditing(); self.trigger.stopEditing();
self.storeValue = {value: self.combo.getValue()}; self.storeValue = {value: self.combo.getValue()};
if (clear === true) { if (clear === true) {
self.storeValue = {value: {}}; self.storeValue = {value: {}};
clear = false;
change = false;
} }
self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM); self.fireEvent(BI.MultiTreeCombo.EVENT_CONFIRM);
} }
}
clear = false;
change = false;
}); });
var triggerBtn = BI.createWidget({ var triggerBtn = BI.createWidget({

Loading…
Cancel
Save