Mattia Larentis 12 anni fa
parent
commit
7b749991c8
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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');