1
0
Fork 0
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:
rolux 2011-10-07 18:42:35 +02:00
commit e1eb3feb49
3 changed files with 25 additions and 13 deletions

View file

@ -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});
}