ソースを参照

Update updateRows

Remove parameter 'checked'
macias3 10 年 前
コミット
0ee252d793
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/bootstrap-table.js

+ 2 - 2
src/bootstrap-table.js

@@ -1456,11 +1456,11 @@
         });
     };
 
-    BootstrapTable.prototype.updateRows = function (checked) {
+    BootstrapTable.prototype.updateRows = function () {
         var that = this;
 
         this.$selectItem.each(function () {
-            that.data[$(this).data('index')][that.header.stateField] = $(this).prop('checked') && checked;
+            that.data[$(this).data('index')][that.header.stateField] = $(this).prop('checked');
         });
     };