Browse Source

Update resetView method

zhixin 11 years ago
parent
commit
1d7f8c9cdd
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/bootstrap-table.js

+ 3 - 0
src/bootstrap-table.js

@@ -579,6 +579,9 @@
             $(this).attr('style', header.styles[i])
                 .css('width', ($(this).parent().width()) + 'px'); // padding: 8px
         });
+
+        this.$selectAll.prop('checked',
+            this.$selectItem.length === this.$selectItem.filter(':checked').length);
     };
 
     BootstrapTable.prototype.load = function(data) {