+
+ if (disabled && $(input).is(':checked')) {
+ $(input).prop('checked', false)
+ .trigger('change');
+ checked = true;
+ } else if (!disabled && !$(input).is(':checked') && checked) {
+ $(input).prop('checked', true)
+ .trigger('change');
+ }
+
+ layer.fire('statechange', {disabled: disabled, checked: checked});
+