소스 검색

Merge branch 'root-talis-develop' into develop

LostCrew 11 년 전
부모
커밋
08225f7398
3개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      dist/js/bootstrap-switch.js
  2. 0 0
      dist/js/bootstrap-switch.min.js
  3. 1 0
      src/coffee/bootstrap-switch.coffee

+ 3 - 0
dist/js/bootstrap-switch.js

@@ -120,6 +120,9 @@
         if (this.options.disabled || this.options.readonly || this.options.indeterminate) {
         if (this.options.disabled || this.options.readonly || this.options.indeterminate) {
           return this.$element;
           return this.$element;
         }
         }
+        if (this.options.state && this.$element.is(':radio')) {
+          return this.$element;
+        }
         value = !!value;
         value = !!value;
         this.$element.prop("checked", value).trigger("change.bootstrapSwitch", skip);
         this.$element.prop("checked", value).trigger("change.bootstrapSwitch", skip);
         return this.$element;
         return this.$element;

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
dist/js/bootstrap-switch.min.js


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

@@ -73,6 +73,7 @@ do ($ = window.jQuery, window) ->
     state: (value, skip) ->
     state: (value, skip) ->
       return @options.state if typeof value is "undefined"
       return @options.state if typeof value is "undefined"
       return @$element if @options.disabled or @options.readonly or @options.indeterminate
       return @$element if @options.disabled or @options.readonly or @options.indeterminate
+      return @$element if @options.state and @$element.is ':radio'
 
 
       value = not not value
       value = not not value
 
 

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