|
@ -112,6 +112,7 @@ $.fn.checkbox = function(parameters) { |
|
|
module.debug('Enabling checkbox', $input); |
|
|
module.debug('Enabling checkbox', $input); |
|
|
$input |
|
|
$input |
|
|
.prop('checked', true) |
|
|
.prop('checked', true) |
|
|
|
|
|
.trigger('change') |
|
|
; |
|
|
; |
|
|
$.proxy(settings.onChange, $input.get())(); |
|
|
$.proxy(settings.onChange, $input.get())(); |
|
|
$.proxy(settings.onEnable, $input.get())(); |
|
|
$.proxy(settings.onEnable, $input.get())(); |
|
@ -121,6 +122,7 @@ $.fn.checkbox = function(parameters) { |
|
|
module.debug('Disabling checkbox'); |
|
|
module.debug('Disabling checkbox'); |
|
|
$input |
|
|
$input |
|
|
.prop('checked', false) |
|
|
.prop('checked', false) |
|
|
|
|
|
.trigger('change') |
|
|
; |
|
|
; |
|
|
$.proxy(settings.onChange, $input.get())(); |
|
|
$.proxy(settings.onChange, $input.get())(); |
|
|
$.proxy(settings.onDisable, $input.get())(); |
|
|
$.proxy(settings.onDisable, $input.get())(); |
|
|