forked from 0x2620/oxjs
simpler fix for changes in jquery attr()
This commit is contained in:
parent
cd9a26dab5
commit
f2490fe771
3 changed files with 13 additions and 27 deletions
|
|
@ -37,9 +37,9 @@ Ox.Checkbox = function(options, self) {
|
|||
(self.options.overlap == 'none' ? '' : ' OxOverlap' +
|
||||
Ox.toTitleCase(self.options.overlap))
|
||||
)
|
||||
.attr(self.options.disabled ? {
|
||||
disabled: 'disabled'
|
||||
} : {});
|
||||
.attr({
|
||||
disabled: self.options.disabled
|
||||
});
|
||||
|
||||
if (self.options.title) {
|
||||
self.options.width != 'auto' && that.css({
|
||||
|
|
@ -102,11 +102,7 @@ Ox.Checkbox = function(options, self) {
|
|||
if (key == 'checked') {
|
||||
that.toggleChecked();
|
||||
} else if (key == 'disabled') {
|
||||
if (value) {
|
||||
that.attr({disabled: 'disabled'})
|
||||
} else {
|
||||
that.removeAttr('disabled');
|
||||
}
|
||||
that.attr({disabled: value})
|
||||
} else if (key == 'title') {
|
||||
self.$title.options({title: value});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue