From 53bc6e9e56891b940f6e97c42b20c78e00f0c109 Mon Sep 17 00:00:00 2001 From: rlx Date: Tue, 12 Jan 2016 09:50:00 +0530 Subject: [PATCH] checkboxes: allow for squared style --- source/UI/js/Form/Checkbox.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/UI/js/Form/Checkbox.js b/source/UI/js/Form/Checkbox.js index 2d8dd19a..68971b33 100644 --- a/source/UI/js/Form/Checkbox.js +++ b/source/UI/js/Form/Checkbox.js @@ -25,6 +25,7 @@ Ox.Checkbox = function(options, self) { label: '', labelWidth: 64, overlap: 'none', + style: 'rounded', title: '', value: false, width: options && (options.label || options.title) ? 'auto' : 16 @@ -70,6 +71,7 @@ Ox.Checkbox = function(options, self) { disabled: self.options.disabled, id: self.options.id + 'Label', overlap: 'left', + style: self.options.style, title: self.options.title, width: getTitleWidth() }) @@ -92,6 +94,7 @@ Ox.Checkbox = function(options, self) { self.$button = Ox.Button({ disabled: self.options.disabled, id: self.options.id + 'Button', + style: self.options.style, type: 'image', value: self.options.value ? 'check' : 'none', values: ['none', 'check']