Преглед на файлове

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 преди 12 години
родител
ревизия
d8050f5317
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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;")