Explorar o código

Merge pull request #287 from cvsguimaraes/master

Form reset improvement
Emanuele %!s(int64=11) %!d(string=hai) anos
pai
achega
ce3f45f1ac

+ 1 - 1
dist/js/bootstrap-switch.js

@@ -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);

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
dist/js/bootstrap-switch.min.js


+ 1 - 1
src/coffee/bootstrap-switch.coffee

@@ -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
 

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio