indeterminate checkboxes...

This commit is contained in:
rlx 2016-02-10 13:19:45 +05:30
parent 6d560fc4f5
commit 1472927883

View file

@ -124,7 +124,7 @@ Ox.Button = function(options, self) {
if (!self.options.disabled) {
that.$tooltip && that.$tooltip.hide();
that.triggerEvent('click');
if (self.options.values.length || self.options.selectable) {
if (self.options.values.length > 1 || self.options.selectable) {
that.toggle();
that.triggerEvent('change', {value: self.options.value});
}