Browse Source

Merge pull request #7 from t3chn0r/patch-1

Use html() instead of text() to add the labels
Mattia Larentis 12 years ago
parent
commit
28940bdbc9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      static/js/jquery.switch.js

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

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