瀏覽代碼

Merge pull request #48 from alaasdk/master

Fixed an issue with disabled checkboxes.
Mattia Larentis 12 年之前
父節點
當前提交
a814dcd396
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {