Browse Source

Modified on-label and off-label to support the value "false"

Matthew Spivey 11 years ago
parent
commit
8dea5732f6
1 changed files with 2 additions and 2 deletions
  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;")