Explorar el Código

fix minor bug

Mattia Larentis hace 12 años
padre
commit
7b749991c8
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      static/js/bootstrapSwitch.js

+ 1 - 0
static/js/bootstrapSwitch.js

@@ -45,6 +45,7 @@
               .addClass(color)
               .html(onLabel);
 
+            color = '';  // reset value
             if ($element.data('off') !== undefined)
               color = "switch-" + $element.data('off');