Explorar o código

fix minor bug

Mattia Larentis %!s(int64=12) %!d(string=hai) anos
pai
achega
7b749991c8
Modificáronse 1 ficheiros con 1 adicións e 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');