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) {
|
if (self.options.indeterminate) {
|
||||||
self.$button.options({value: 'minus'});
|
self.$button.options({value: 'minus'});
|
||||||
} else {
|
} else {
|
||||||
|
self.$button.options({values: ['none', 'check']});
|
||||||
self.$button.toggle();
|
self.$button.toggle();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -107,7 +108,7 @@ Ox.Checkbox = function(options, self) {
|
||||||
type: 'image',
|
type: 'image',
|
||||||
value: self.options.indeterminate ? 'minus'
|
value: self.options.indeterminate ? 'minus'
|
||||||
: self.options.value ? 'check' : 'none',
|
: self.options.value ? 'check' : 'none',
|
||||||
values: ['none', 'check']
|
values: self.options.indeterminate ? null : ['none', 'check']
|
||||||
})
|
})
|
||||||
.addClass('OxCheckbox')
|
.addClass('OxCheckbox')
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
|
|
Loading…
Reference in a new issue