indeterminate checkboxes...
This commit is contained in:
parent
368ae04fe0
commit
0dd921caae
1 changed files with 2 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue