Browse Source

added support for html tag that may override inverse option

Emanuele Marchi 10 năm trước cách đây
mục cha
commit
38a6766618

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

@@ -38,6 +38,7 @@
           disabled: this.$element.is(":disabled"),
           disabled: this.$element.is(":disabled"),
           readonly: this.$element.is("[readonly]"),
           readonly: this.$element.is("[readonly]"),
           indeterminate: this.$element.data("indeterminate"),
           indeterminate: this.$element.data("indeterminate"),
+          inverse: this.$element.data("inverse"),
           onColor: this.$element.data("on-color"),
           onColor: this.$element.data("on-color"),
           offColor: this.$element.data("off-color"),
           offColor: this.$element.data("off-color"),
           onText: this.$element.data("on-text"),
           onText: this.$element.data("on-text"),

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/js/bootstrap-switch.min.js


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

@@ -11,6 +11,7 @@ do ($ = window.jQuery, window) ->
         disabled: @$element.is ":disabled"
         disabled: @$element.is ":disabled"
         readonly: @$element.is "[readonly]"
         readonly: @$element.is "[readonly]"
         indeterminate: @$element.data "indeterminate"
         indeterminate: @$element.data "indeterminate"
+        inverse: @$element.data "inverse"
         onColor: @$element.data "on-color"
         onColor: @$element.data "on-color"
         offColor: @$element.data "off-color"
         offColor: @$element.data "off-color"
         onText: @$element.data "on-text"
         onText: @$element.data "on-text"

+ 1 - 0
test/bootstrap-switch.js

@@ -38,6 +38,7 @@
           disabled: this.$element.is(":disabled"),
           disabled: this.$element.is(":disabled"),
           readonly: this.$element.is("[readonly]"),
           readonly: this.$element.is("[readonly]"),
           indeterminate: this.$element.data("indeterminate"),
           indeterminate: this.$element.data("indeterminate"),
+          inverse: this.$element.data("inverse"),
           onColor: this.$element.data("on-color"),
           onColor: this.$element.data("on-color"),
           offColor: this.$element.data("off-color"),
           offColor: this.$element.data("off-color"),
           onText: this.$element.data("on-text"),
           onText: this.$element.data("on-text"),

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác