소스 검색

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

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.