Преглед на файлове

revert of switchChange event triggered only on falsy skip

Emanuele Marchi преди 10 години
родител
ревизия
b7e9c8518f
променени са 4 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      dist/js/bootstrap-switch.js
  2. 0 0
      dist/js/bootstrap-switch.min.js
  3. 1 1
      src/coffee/bootstrap-switch.coffee
  4. 1 1
      test/bootstrap-switch.js

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

@@ -493,8 +493,8 @@
                 if (_this.$element.is(":radio")) {
                   $("[name='" + (_this.$element.attr('name')) + "']").not(_this.$element).prop("checked", false).trigger("change.bootstrapSwitch", true);
                 }
+                return _this.$element.trigger("switchChange.bootstrapSwitch", [state]);
               }
-              return _this.$element.trigger("switchChange.bootstrapSwitch", [state]);
             };
           })(this),
           "focus.bootstrapSwitch": (function(_this) {

Файловите разлики са ограничени, защото са твърде много
+ 0 - 0
dist/js/bootstrap-switch.min.js


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

@@ -369,7 +369,7 @@ do ($ = window.jQuery, window) ->
               .prop("checked", false)
               .trigger "change.bootstrapSwitch", true
 
-          @$element.trigger "switchChange.bootstrapSwitch", [state]
+            @$element.trigger "switchChange.bootstrapSwitch", [state]
 
         "focus.bootstrapSwitch": (e) =>
           e.preventDefault()

+ 1 - 1
test/bootstrap-switch.js

@@ -493,8 +493,8 @@
                 if (_this.$element.is(":radio")) {
                   $("[name='" + (_this.$element.attr('name')) + "']").not(_this.$element).prop("checked", false).trigger("change.bootstrapSwitch", true);
                 }
+                return _this.$element.trigger("switchChange.bootstrapSwitch", [state]);
               }
-              return _this.$element.trigger("switchChange.bootstrapSwitch", [state]);
             };
           })(this),
           "focus.bootstrapSwitch": (function(_this) {

Някои файлове не бяха показани, защото твърде много файлове са промени