|
|
|
@ -20,11 +20,6 @@ BI.MultiSelectItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
this.checkbox = BI.createWidget({ |
|
|
|
|
type: "bi.checkbox" |
|
|
|
|
}); |
|
|
|
|
this.checkbox.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
|
self.setSelected(self.isSelected()); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
return { |
|
|
|
|
type: "bi.vertical_adapt", |
|
|
|
|
columnSize: [o.iconWrapperWidth || o.height, "fill"], |
|
|
|
@ -74,7 +69,6 @@ BI.MultiSelectItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
|
|
|
|
|
doClick: function () { |
|
|
|
|
BI.MultiSelectItem.superclass.doClick.apply(this, arguments); |
|
|
|
|
this.checkbox.setSelected(this.isSelected()); |
|
|
|
|
if (this.isValid()) { |
|
|
|
|
this.fireEvent(BI.MultiSelectItem.EVENT_CHANGE, this.getValue(), this); |
|
|
|
|
} |
|
|
|
|