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'});
} else {
self.$button.options({values: ['none', 'check']});
self.$button.options({value: self.options.value});
self.$button.toggle();
self.$button.options({
value: self.options.value ? 'none' : 'check'
});
}
},
label: function() {