indeterminate checkboxes...

This commit is contained in:
rlx 2016-02-10 13:03:36 +05:30
parent 368ae04fe0
commit 0dd921caae

View file

@ -44,6 +44,7 @@ Ox.Checkbox = function(options, self) {
if (self.options.indeterminate) {
self.$button.options({value: 'minus'});
} else {
self.$button.options({values: ['none', 'check']});
self.$button.toggle();
}
},
@ -107,7 +108,7 @@ Ox.Checkbox = function(options, self) {
type: 'image',
value: self.options.indeterminate ? 'minus'
: self.options.value ? 'check' : 'none',
values: ['none', 'check']
values: self.options.indeterminate ? null : ['none', 'check']
})
.addClass('OxCheckbox')
.bindEvent({