diff --git a/src/widget/multiselect/multiselect.combo.js b/src/widget/multiselect/multiselect.combo.js index 4745ece5a3..07294aae5b 100644 --- a/src/widget/multiselect/multiselect.combo.js +++ b/src/widget/multiselect/multiselect.combo.js @@ -424,6 +424,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, { populate: function () { this.combo.populate.apply(this.combo, arguments); + this.numberCounter.populate.apply(this.numberCounter, arguments); } }); diff --git a/src/widget/multiselect/multiselect.combo.nobar.js b/src/widget/multiselect/multiselect.combo.nobar.js index 671c250965..35435a6250 100644 --- a/src/widget/multiselect/multiselect.combo.nobar.js +++ b/src/widget/multiselect/multiselect.combo.nobar.js @@ -420,6 +420,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, { populate: function () { this.combo.populate.apply(this.combo, arguments); + this.numberCounter.populate.apply(this.numberCounter, arguments); } }); diff --git a/src/widget/multiselect/multiselect.insert.combo.js b/src/widget/multiselect/multiselect.insert.combo.js index b00eee3db3..a953ba0188 100644 --- a/src/widget/multiselect/multiselect.insert.combo.js +++ b/src/widget/multiselect/multiselect.insert.combo.js @@ -441,6 +441,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { populate: function () { this.combo.populate.apply(this.combo, arguments); + this.numberCounter.populate.apply(this.numberCounter, arguments); } }); diff --git a/src/widget/multiselect/multiselect.insert.combo.nobar.js b/src/widget/multiselect/multiselect.insert.combo.nobar.js index e5f60581c3..6f78f79d9d 100644 --- a/src/widget/multiselect/multiselect.insert.combo.nobar.js +++ b/src/widget/multiselect/multiselect.insert.combo.nobar.js @@ -438,6 +438,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, { populate: function () { this.combo.populate.apply(this.combo, arguments); + this.numberCounter.populate.apply(this.numberCounter, arguments); } }); diff --git a/src/widget/multiselect/trigger/button.checkselected.js b/src/widget/multiselect/trigger/button.checkselected.js index 2fe6104015..15d302a323 100644 --- a/src/widget/multiselect/trigger/button.checkselected.js +++ b/src/widget/multiselect/trigger/button.checkselected.js @@ -45,11 +45,8 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, { } }, - setValue: function (ob) { + _populate: function (ob) { var self = this, o = this.options; - ob || (ob = {}); - ob.type || (ob.type = BI.Selection.Multi); - ob.value || (ob.value = []); if (ob.type === BI.Selection.All) { o.itemsCreator({ type: BI.MultiSelectCombo.REQ_GET_DATA_LENGTH @@ -68,6 +65,23 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, { }); }, + _assertValue: function (ob) { + ob || (ob = {}); + ob.type || (ob.type = BI.Selection.Multi); + ob.value || (ob.value = []); + return ob; + }, + + setValue: function (ob) { + ob = this._assertValue(ob); + this.options.value = ob; + this._populate(ob); + }, + + populate: function () { + this._populate(this._assertValue(this.options.value)); + }, + getValue: function () { }