Преглед изворни кода

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"
 

Неке датотеке нису приказане због велике количине промена