From c97895f55d2265f92177480714330debbcaf614f Mon Sep 17 00:00:00 2001 From: rolux Date: Sun, 5 Jan 2014 15:31:18 +0530 Subject: [PATCH] Button: handle overlay style --- source/Ox.UI/js/Form/Button.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Form/Button.js b/source/Ox.UI/js/Form/Button.js index 837e7caa..3c4f95ce 100644 --- a/source/Ox.UI/js/Form/Button.js +++ b/source/Ox.UI/js/Form/Button.js @@ -147,7 +147,12 @@ Ox.Button = function(options, self) { src: Ox.UI.getImageURL( 'symbol' + self.options.title[0].toUpperCase() + self.options.title.slice(1), - self.options.style == 'video' ? 'video' + self.options.style == 'overlay' ? 'overlay' + ( + self.options.disabled ? 'Disabled' + : self.options.selectable && self.options.value ? 'Selected' + : '' + ) + : self.options.style == 'video' ? 'video' : self.options.disabled ? 'disabled' : self.options.selectable && self.options.value ? 'selected' : ''