فهرست منبع

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) {

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است