Browse Source

fixed paginationSwitch for server-side #1677

as see in #1677, server-side didnt check against this.options.pagination, so pagination-switch became ignored unless crude queryParam workaround.
dabros 10 years ago
parent
commit
3dad9ff5f6
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/bootstrap-table.js

+ 3 - 4
src/bootstrap-table.js

@@ -1749,10 +1749,9 @@
             },
             request;
 
-        if(this.options.pagination)
-        {
-        	params.pageSize = this.options.pageSize === this.options.formatAllRows() ?
-                    this.options.totalRows : this.options.pageSize;
+        if(this.options.pagination) {
+            params.pageSize = this.options.pageSize === this.options.formatAllRows() ?
+                this.options.totalRows : this.options.pageSize;
             params.pageNumber = this.options.pageNumber;
         }