|
|
@ -113,9 +113,13 @@ BI.SelectList = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setAllSelected: function (v) { |
|
|
|
setAllSelected: function (v) { |
|
|
|
|
|
|
|
if (this.list.setAllSelected) { |
|
|
|
|
|
|
|
this.list.setAllSelected(v); |
|
|
|
|
|
|
|
} else { |
|
|
|
BI.each(this.getAllButtons(), function (i, btn) { |
|
|
|
BI.each(this.getAllButtons(), function (i, btn) { |
|
|
|
(btn.setSelected || btn.setAllSelected).apply(btn, [v]); |
|
|
|
(btn.setSelected || btn.setAllSelected).apply(btn, [v]); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
this.allSelected = !!v; |
|
|
|
this.allSelected = !!v; |
|
|
|
this.toolbar.setSelected(v); |
|
|
|
this.toolbar.setSelected(v); |
|
|
|
this.toolbar.setHalfSelected(false); |
|
|
|
this.toolbar.setHalfSelected(false); |
|
|
|