minor reformatting

This commit is contained in:
rlx 2012-06-16 10:09:21 +00:00
parent 3e2c2d451e
commit cd6e17d124

View file

@ -69,10 +69,6 @@ Ox.Button = function(options, self) {
that.$element.css({width: (self.options.width - 14) + 'px'});
}
})
.attr({
disabled: self.options.disabled,
type: self.options.type == 'text' ? 'button' : 'image'
})
.addClass(
'OxButton Ox' + Ox.toTitleCase(self.options.size)
+ (self.options.disabled ? ' OxDisabled': '')
@ -80,6 +76,10 @@ Ox.Button = function(options, self) {
+ (self.options.style != 'default' ? ' Ox' + Ox.toTitleCase(self.options.style) : '')
+ (self.options.overlap != 'none' ? ' OxOverlap' + Ox.toTitleCase(self.options.overlap) : '')
)
.attr({
disabled: self.options.disabled,
type: self.options.type == 'text' ? 'button' : 'image'
})
.css(self.options.width == 'auto' ? {} : {
width: (self.options.width - 14) + 'px'
})