浏览代码

insertRow needs paging refresh

Update search and pagination state to rebuild the body properly
Thiago Fernandes 10 年之前
父节点
当前提交
ebd43f09f5
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/bootstrap-table.js

+ 2 - 0
src/bootstrap-table.js

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