diff --git a/bi/case.js b/bi/case.js index 2a7f667cd..00223d3cb 100644 --- a/bi/case.js +++ b/bi/case.js @@ -10269,7 +10269,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { height: 25, text: BI.i18nText('BI-Select_All'), isAllCheckedBySelectedValue: BI.emptyFn, - onCheck: BI.emptyFn, isHalfCheckedBySelectedValue: function (selectedValues) { return selectedValues.length > 0; } @@ -10283,7 +10282,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { stopPropagation: true, handler: function () { self.setSelected(self.isSelected()); - o.onCheck.call(self, self.isSelected()); } }); this.half = BI.createWidget({ @@ -10291,7 +10289,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { stopPropagation: true, handler: function () { self.setSelected(true); - o.onCheck.call(self, self.isSelected()); } }); this.checkbox.on(BI.Controller.EVENT_CHANGE, function () { @@ -10334,21 +10331,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { this.half.invisible(); }, - doClick: function () { - var isHalf = this.isHalfSelected(), isSelected = this.isSelected(); - if (isHalf === true) { - this.setSelected(true); - } else { - this.setSelected(!isSelected); - } - - if (this.isValid()) { - this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, this.getValue(), this); - this.options.onCheck.call(this, this.isSelected()); - this.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, this.isSelected(), this); - } - }, - setSelected: function (v) { this.checkbox.setSelected(v); this.setHalfSelected(false); diff --git a/docs/case.js b/docs/case.js index 2a7f667cd..00223d3cb 100644 --- a/docs/case.js +++ b/docs/case.js @@ -10269,7 +10269,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { height: 25, text: BI.i18nText('BI-Select_All'), isAllCheckedBySelectedValue: BI.emptyFn, - onCheck: BI.emptyFn, isHalfCheckedBySelectedValue: function (selectedValues) { return selectedValues.length > 0; } @@ -10283,7 +10282,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { stopPropagation: true, handler: function () { self.setSelected(self.isSelected()); - o.onCheck.call(self, self.isSelected()); } }); this.half = BI.createWidget({ @@ -10291,7 +10289,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { stopPropagation: true, handler: function () { self.setSelected(true); - o.onCheck.call(self, self.isSelected()); } }); this.checkbox.on(BI.Controller.EVENT_CHANGE, function () { @@ -10334,21 +10331,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { this.half.invisible(); }, - doClick: function () { - var isHalf = this.isHalfSelected(), isSelected = this.isSelected(); - if (isHalf === true) { - this.setSelected(true); - } else { - this.setSelected(!isSelected); - } - - if (this.isValid()) { - this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, this.getValue(), this); - this.options.onCheck.call(this, this.isSelected()); - this.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, this.isSelected(), this); - } - }, - setSelected: function (v) { this.checkbox.setSelected(v); this.setHalfSelected(false); diff --git a/src/case/toolbar/toolbar.multiselect.js b/src/case/toolbar/toolbar.multiselect.js index 78c4b049b..7a1497d8d 100644 --- a/src/case/toolbar/toolbar.multiselect.js +++ b/src/case/toolbar/toolbar.multiselect.js @@ -12,7 +12,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { height: 25, text: BI.i18nText('BI-Select_All'), isAllCheckedBySelectedValue: BI.emptyFn, - onCheck: BI.emptyFn, isHalfCheckedBySelectedValue: function (selectedValues) { return selectedValues.length > 0; } @@ -26,7 +25,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { stopPropagation: true, handler: function () { self.setSelected(self.isSelected()); - o.onCheck.call(self, self.isSelected()); } }); this.half = BI.createWidget({ @@ -34,7 +32,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { stopPropagation: true, handler: function () { self.setSelected(true); - o.onCheck.call(self, self.isSelected()); } }); this.checkbox.on(BI.Controller.EVENT_CHANGE, function () { @@ -77,21 +74,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { this.half.invisible(); }, - doClick: function () { - var isHalf = this.isHalfSelected(), isSelected = this.isSelected(); - if (isHalf === true) { - this.setSelected(true); - } else { - this.setSelected(!isSelected); - } - - if (this.isValid()) { - this.fireEvent(BI.Controller.EVENT_CHANGE, BI.Events.CLICK, this.getValue(), this); - this.options.onCheck.call(this, this.isSelected()); - this.fireEvent(BI.MultiSelectBar.EVENT_CHANGE, this.isSelected(), this); - } - }, - setSelected: function (v) { this.checkbox.setSelected(v); this.setHalfSelected(false);