@@ -418,7 +418,7 @@
return $form.find("input").filter(function() {
return $(this).data("bootstrap-switch");
}).each(function() {
- return $(this).bootstrapSwitch("state", false);
+ return $(this).bootstrapSwitch("state", this.checked);
});
}, 1);
}).data("bootstrap-switch", true);
@@ -310,7 +310,7 @@ do ($ = window.jQuery, window) ->
$form
.find("input")
.filter( -> $(@).data "bootstrap-switch")
- .each -> $(@).bootstrapSwitch "state", false
+ .each -> $(@).bootstrapSwitch "state", @checked
, 1
.data "bootstrap-switch", true