Ver código fonte

fix minor bug

Mattia Larentis 12 anos atrás
pai
commit
7b749991c8
1 arquivos alterados com 1 adições e 0 exclusões
  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');