Forráskód Böngészése

Merge branch 'develop' of github.com:nostalgiaz/bootstrap-switch into develop

Emanuele Marchi 11 éve
szülő
commit
07d001f558

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

@@ -427,6 +427,12 @@
             return function(e) {
               return _this.$label.trigger("mouseup.bootstrapSwitch");
             };
+          })(this),
+          "click.bootstrapSwitch": (function(_this) {
+            return function(e) {
+              _this.toggleState();
+              return _this.$element.trigger('focus.bootstrapSwitch');
+            };
           })(this)
         });
       };

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
dist/js/bootstrap-switch.min.js


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

@@ -324,6 +324,10 @@ do ($ = window.jQuery, window) ->
 
         "mouseleave.bootstrapSwitch": (e) =>
           @$label.trigger "mouseup.bootstrapSwitch"
+        
+        "click.bootstrapSwitch": (e) =>
+          @toggleState()
+          @$element.trigger 'focus.bootstrapSwitch'
 
     _formHandler: ->
       $form = @$element.closest "form"

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott