浏览代码

Update bootstrap-switch.js

Change

$label.html('<div class="text-label">' + textLabel + '</div>');

to

$label.html('' + textLabel + '');
Stein, Peter 11 年之前
父节点
当前提交
fa01cb560e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      static/js/bootstrap-switch.js

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

@@ -83,7 +83,7 @@
             }
             
             if (textLabel) {
-              $label.html('<div class="text-label">' + textLabel + '</div>');
+              $label.html('' + textLabel + '');
             }
 
             $div = $element.find(inputSelector).wrap($('<div>')).parent().data('animated', false);