From 14729278837c80acf672854e616e1b1c0faeb41f Mon Sep 17 00:00:00 2001 From: rlx Date: Wed, 10 Feb 2016 13:19:45 +0530 Subject: [PATCH] indeterminate checkboxes... --- source/UI/js/Form/Button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/UI/js/Form/Button.js b/source/UI/js/Form/Button.js index cf9c0e08..a4d366c4 100644 --- a/source/UI/js/Form/Button.js +++ b/source/UI/js/Form/Button.js @@ -124,7 +124,7 @@ Ox.Button = function(options, self) { if (!self.options.disabled) { that.$tooltip && that.$tooltip.hide(); that.triggerEvent('click'); - if (self.options.values.length || self.options.selectable) { + if (self.options.values.length > 1 || self.options.selectable) { that.toggle(); that.triggerEvent('change', {value: self.options.value}); }