Bläddra i källkod

Merge pull request #10 from nostalgiaz/master

Update bootstrap-switch.js
Stein, Peter 11 år sedan
förälder
incheckning
610bcee700
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      static/js/bootstrap-switch.js

+ 1 - 1
static/js/bootstrap-switch.js

@@ -149,7 +149,7 @@
 
 
               $this.closest('div').removeClass('switch-animate');
               $this.closest('div').removeClass('switch-animate');
 
 
-              if ($this.closest('.has-switch').is('.deactivate'))
+              if ($this.closest('.has-switch').is('.deactivate')) {
                 $this.unbind('click');
                 $this.unbind('click');
               } else if ( $this.closest('.switch-on').parent().is('.radio-no-uncheck') ) {
               } else if ( $this.closest('.switch-on').parent().is('.radio-no-uncheck') ) {
                 $this.unbind('click');
                 $this.unbind('click');