Procházet zdrojové kódy

Merge pull request #7 from t3chn0r/patch-1

Use html() instead of text() to add the labels
Mattia Larentis před 12 roky
rodič
revize
28940bdbc9
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      static/js/jquery.switch.js

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

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