Selaa lähdekoodia

Merge pull request #146 from matthewspivey/master

Modified on-label and off-label to support the value "false"
Mattia Larentis 11 vuotta sitten
vanhempi
commit
fecbe28730
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      static/js/bootstrap-switch.js

+ 2 - 2
static/js/bootstrap-switch.js

@@ -61,7 +61,7 @@
               .addClass("switch-left")
               .addClass(myClasses)
               .addClass(color)
-              .html(onLabel);
+              .html('' + onLabel + '');
 
             color = '';
             if ($element.data('off') !== undefined)
@@ -71,7 +71,7 @@
               .addClass("switch-right")
               .addClass(myClasses)
               .addClass(color)
-              .html(offLabel);
+              .html('' + offLabel + '');
 
             $label = $('<label>')
               .html("&nbsp;")