Browse Source

无JIRA任务 全选后点击查看已选多发了一次请求

es6
windy 3 years ago
parent
commit
5305303cb5
  1. 6
      src/base/combination/switcher.js
  2. 2
      src/widget/multiselect/trigger/switcher.checkselected.js

6
src/base/combination/switcher.js

@ -191,9 +191,13 @@ BI.Switcher = BI.inherit(BI.Widget, {
}, this.getName());
},
populate: function (items) {
_populate: function () {
this._assertPopupView();
this.popupView.populate.apply(this.popupView, arguments);
},
populate: function (items) {
this._populate.apply(this, arguments);
this.switcher.populate && this.switcher.populate.apply(this.switcher, arguments);
},

2
src/widget/multiselect/trigger/switcher.checkselected.js

@ -62,7 +62,7 @@ BI.MultiSelectCheckSelectedSwitcher = BI.inherit(BI.Widget, {
this.switcher.on(BI.Switcher.EVENT_AFTER_POPUPVIEW, function () {
var me = this;
BI.nextTick(function () {
me.populate();
me._populate();
});
});
},

Loading…
Cancel
Save