Browse Source

insertRow needs paging refresh

Update search and pagination state to rebuild the body properly
Thiago Fernandes 10 years ago
parent
commit
ebd43f09f5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/bootstrap-table.js

+ 2 - 0
src/bootstrap-table.js

@@ -1699,6 +1699,8 @@
             return;
         }
         this.data.splice(params.index, 0, params.row);
+        this.initSearch();
+        this.initPagination();
         this.initBody(true);
     };