Browse Source

Merge pull request #48 from alaasdk/master

Fixed an issue with disabled checkboxes.
Mattia Larentis 12 years ago
parent
commit
a814dcd396
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/js/bootstrapSwitch.js

+ 1 - 1
static/js/bootstrapSwitch.js

@@ -139,7 +139,7 @@
 
               $this.closest('div').removeClass('switch-animate');
 
-              if ($this.closest('.switch').is('.deactivate'))
+              if ($this.closest('.has-switch').is('.deactivate'))
                 $this.unbind('click');
               else {
                 $this.on('mousemove touchmove', function (e) {