Browse Source

Fix ResetRow function bug.

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

+ 3 - 1
src/bootstrap-table.js

@@ -1751,7 +1751,9 @@
         $.each(this.data, function (i, row) {
             that.$selectAll.prop('checked', false);
             that.$selectItem.prop('checked', false);
-            row[that.header.stateField] = false;
+            if (that.header.stateField) {
+                row[that.header.stateField] = false;
+            }
         });
     };