Browse Source

Fixes #770: Disabled checkboxes will not allow selection

pull/795/head
jlukic 10 years ago
parent
commit
0a8ef43039
1 changed files with 7 additions and 5 deletions
  1. 12
      src/modules/checkbox.js

12
src/modules/checkbox.js

@ -130,11 +130,13 @@ $.fn.checkbox = function(parameters) {
toggle: function(event) { toggle: function(event) {
module.verbose('Determining new checkbox state'); module.verbose('Determining new checkbox state');
if( module.is.disabled() ) {
module.enable();
}
else if( module.is.enabled() && module.can.disable() ) {
module.disable();
if( !$input.prop('disabled') ) {
if( module.is.disabled() ) {
module.enable();
}
else if( module.is.enabled() && module.can.disable() ) {
module.disable();
}
} }
}, },
setting: function(name, value) { setting: function(name, value) {

Loading…
Cancel
Save