Ver código fonte

Merge branch 'root-talis-develop' into develop

LostCrew 11 anos atrás
pai
commit
08225f7398

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

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

Diferenças do arquivo suprimidas por serem muito extensas
+ 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) ->
       return @options.state if typeof value is "undefined"
       return @$element if @options.disabled or @options.readonly or @options.indeterminate
+      return @$element if @options.state and @$element.is ':radio'
 
       value = not not value
 

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff