Browse Source

fix minor bug

Mattia Larentis 12 năm trước cách đây
mục cha
commit
7b749991c8
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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');