|
|
@ -10269,7 +10269,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { |
|
|
|
height: 25, |
|
|
|
height: 25, |
|
|
|
text: BI.i18nText('BI-Select_All'), |
|
|
|
text: BI.i18nText('BI-Select_All'), |
|
|
|
isAllCheckedBySelectedValue: BI.emptyFn, |
|
|
|
isAllCheckedBySelectedValue: BI.emptyFn, |
|
|
|
onCheck: BI.emptyFn, |
|
|
|
|
|
|
|
isHalfCheckedBySelectedValue: function (selectedValues) { |
|
|
|
isHalfCheckedBySelectedValue: function (selectedValues) { |
|
|
|
return selectedValues.length > 0; |
|
|
|
return selectedValues.length > 0; |
|
|
|
} |
|
|
|
} |
|
|
@ -10283,7 +10282,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { |
|
|
|
stopPropagation: true, |
|
|
|
stopPropagation: true, |
|
|
|
handler: function () { |
|
|
|
handler: function () { |
|
|
|
self.setSelected(self.isSelected()); |
|
|
|
self.setSelected(self.isSelected()); |
|
|
|
o.onCheck.call(self, self.isSelected()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.half = BI.createWidget({ |
|
|
|
this.half = BI.createWidget({ |
|
|
@ -10291,7 +10289,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { |
|
|
|
stopPropagation: true, |
|
|
|
stopPropagation: true, |
|
|
|
handler: function () { |
|
|
|
handler: function () { |
|
|
|
self.setSelected(true); |
|
|
|
self.setSelected(true); |
|
|
|
o.onCheck.call(self, self.isSelected()); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function () { |
|
|
@ -10334,21 +10331,6 @@ BI.MultiSelectBar = BI.inherit(BI.BasicButton, { |
|
|
|
this.half.invisible(); |
|
|
|
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) { |
|
|
|
setSelected: function (v) { |
|
|
|
this.checkbox.setSelected(v); |
|
|
|
this.checkbox.setSelected(v); |
|
|
|
this.setHalfSelected(false); |
|
|
|
this.setHalfSelected(false); |
|
|
|