Browse Source

fixed broken toggle action in case of radio inputs #312

LostCrew 11 years ago
parent
commit
3003ad76d1

+ 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"
         });

File diff suppressed because it is too large
+ 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"
 

Some files were not shown because too many files changed in this diff