Explorar el Código

Update static/js/jquery.switch.js

- Changed the insertion of the label to use html() instead so html code can also be used (for example, Font Awesome icons).
t3chn0r hace 12 años
padre
commit
d8050f5317
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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;")