indeterminate checkboxes...

This commit is contained in:
rlx 2016-02-10 13:17:17 +05:30
parent ff30b32188
commit 6d560fc4f5

View file

@ -46,8 +46,9 @@ Ox.Checkbox = function(options, self) {
self.$button.options({value: 'remove'}); self.$button.options({value: 'remove'});
} else { } else {
self.$button.options({values: ['none', 'check']}); self.$button.options({values: ['none', 'check']});
self.$button.options({value: self.options.value}); self.$button.options({
self.$button.toggle(); value: self.options.value ? 'none' : 'check'
});
} }
}, },
label: function() { label: function() {