Browse Source

Removed the icon-prefix

Pasquale Vazzana 11 năm trước cách đây
mục cha
commit
3ad7d60f62
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      static/js/bootstrap-switch.js

+ 1 - 1
static/js/bootstrap-switch.js

@@ -75,7 +75,7 @@
               .attr('for', $element.find(inputSelector).attr('id'));
 
             if (icon) {
-              $label.html('<i class="icon icon-' + icon + '"></i>');
+              $label.html('<i class="icon ' + icon + '"></i>');
             }
 
             $div = $element.find(inputSelector).wrap($('<div>')).parent().data('animated', false);