Browse Source

Update resetView method.

zhixin 11 years ago
parent
commit
427c1b6240
1 changed files with 1 additions and 1 deletions
  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);
     };