Browse Source

Merge pull request #1811 from yenyen/refreshsort-after-append-rows

Refreshsort after append rows (same as #1796 but in develop branch)
wenzhixin 10 years ago
parent
commit
b73514d6ca
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/bootstrap-table.js

+ 3 - 0
src/bootstrap-table.js

@@ -2192,6 +2192,7 @@
         this.initData(data, 'append');
         this.initSearch();
         this.initPagination();
+        this.initSort();
         this.initBody(true);
     };
 
@@ -2199,6 +2200,7 @@
         this.initData(data, 'prepend');
         this.initSearch();
         this.initPagination();
+        this.initSort();
         this.initBody(true);
     };
 
@@ -2227,6 +2229,7 @@
 
         this.initSearch();
         this.initPagination();
+        this.initSort();
         this.initBody(true);
     };