From 0a8ef4303986936ad9a92af89d038b7a7c750aae Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 11 Apr 2014 11:07:16 -0400 Subject: [PATCH] Fixes #770: Disabled checkboxes will not allow selection --- src/modules/checkbox.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/modules/checkbox.js b/src/modules/checkbox.js index 0ec3923b4..8d12b3d6a 100755 --- a/src/modules/checkbox.js +++ b/src/modules/checkbox.js @@ -130,11 +130,13 @@ $.fn.checkbox = function(parameters) { toggle: function(event) { 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) {