Button: handle overlay style

This commit is contained in:
rolux 2014-01-05 15:31:18 +05:30
parent 1c281889ff
commit c97895f55d

View file

@ -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'
: ''