ソースを参照

Update resetView method

zhixin 11 年 前
コミット
1d7f8c9cdd
1 ファイル変更3 行追加0 行削除
  1. 3 0
      src/bootstrap-table.js

+ 3 - 0
src/bootstrap-table.js

@@ -579,6 +579,9 @@
             $(this).attr('style', header.styles[i])
             $(this).attr('style', header.styles[i])
                 .css('width', ($(this).parent().width()) + 'px'); // padding: 8px
                 .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) {
     BootstrapTable.prototype.load = function(data) {