|
|
@ -52,7 +52,7 @@ BI.SelectList = BI.inherit(BI.Widget, { |
|
|
|
callback.apply(self, arguments); |
|
|
|
callback.apply(self, arguments); |
|
|
|
if (op.times === 1) { |
|
|
|
if (op.times === 1) { |
|
|
|
self.toolbar.setVisible(items && items.length > 0); |
|
|
|
self.toolbar.setVisible(items && items.length > 0); |
|
|
|
self.toolbar.setEnable(items && items.length > 0); |
|
|
|
self.toolbar.setEnable(!o.disabled && items && items.length > 0); |
|
|
|
} |
|
|
|
} |
|
|
|
self._checkAllSelected(); |
|
|
|
self._checkAllSelected(); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -151,7 +151,7 @@ BI.SelectList = BI.inherit(BI.Widget, { |
|
|
|
value: this.list.getNotSelectedValue(), |
|
|
|
value: this.list.getNotSelectedValue(), |
|
|
|
assist: this.list.getValue() |
|
|
|
assist: this.list.getValue() |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
empty: function () { |
|
|
|
empty: function () { |
|
|
@ -159,8 +159,9 @@ BI.SelectList = BI.inherit(BI.Widget, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
populate: function (items) { |
|
|
|
|
|
|
|
var o = this.options; |
|
|
|
this.toolbar.setVisible(!BI.isEmptyArray(items)); |
|
|
|
this.toolbar.setVisible(!BI.isEmptyArray(items)); |
|
|
|
this.toolbar.setEnable(!BI.isEmptyArray(items)); |
|
|
|
this.toolbar.setEnable(!o.disabled && !BI.isEmptyArray(items)); |
|
|
|
this.list.populate.apply(this.list, arguments); |
|
|
|
this.list.populate.apply(this.list, arguments); |
|
|
|
this._checkAllSelected(); |
|
|
|
this._checkAllSelected(); |
|
|
|
}, |
|
|
|
}, |
|
|
|