浏览代码

fixed broken toggle action in case of radio inputs #312

LostCrew 11 年之前
父节点
当前提交
3003ad76d1
共有 3 个文件被更改,包括 0 次插入2 次删除
  1. 0 1
      dist/js/bootstrap-switch.js
  2. 0 0
      dist/js/bootstrap-switch.min.js
  3. 0 1
      src/coffee/bootstrap-switch.coffee

+ 0 - 1
dist/js/bootstrap-switch.js

@@ -86,7 +86,6 @@
           "class": "" + this.options.baseClass + "-handle-off " + this.options.baseClass + "-" + this.options.offColor
         });
         this.$label = $("<label>", {
-          "for": this.$element.attr("id"),
           html: this.options.labelText,
           "class": "" + this.options.baseClass + "-label"
         });

文件差异内容过多而无法显示
+ 0 - 0
dist/js/bootstrap-switch.min.js


+ 0 - 1
src/coffee/bootstrap-switch.coffee

@@ -40,7 +40,6 @@ do ($ = window.jQuery, window) ->
         html: @options.offText,
         class: "#{@options.baseClass}-handle-off #{@options.baseClass}-#{@options.offColor}"
       @$label = $ "<label>",
-        for: @$element.attr "id"
         html: @options.labelText
         class: "#{@options.baseClass}-label"
 

部分文件因为文件数量过多而无法显示