forked from 0x2620/oxjs
fix a regression with regards to the disabled state of form elements (jquery 1.6 attr() has changed)
This commit is contained in:
parent
609f834cd3
commit
e1eb3feb49
3 changed files with 25 additions and 13 deletions
|
|
@ -101,6 +101,12 @@ Ox.Checkbox = function(options, self) {
|
|||
self.setOption = function(key, value) {
|
||||
if (key == 'checked') {
|
||||
that.toggleChecked();
|
||||
} else if (key == 'disabled') {
|
||||
if (value) {
|
||||
that.attr({disabled: 'disabled'})
|
||||
} else {
|
||||
that.removeAttr('disabled');
|
||||
}
|
||||
} else if (key == 'title') {
|
||||
self.$title.options({title: value});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue