浏览代码

Update resetView method.

zhixin 11 年之前
父节点
当前提交
427c1b6240
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -580,7 +580,7 @@
                 .css('width', ($(this).parent().width()) + 'px'); // padding: 8px
         });
 
-        this.$selectAll.prop('checked',
+        this.$selectAll.prop('checked', this.$selectItem.length > 0 &&
             this.$selectItem.length === this.$selectItem.filter(':checked').length);
     };