Skip to content

Commit

Permalink
Fix wenzhixin#3342: remove limit when it is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhixin committed Dec 8, 2017
1 parent 9351cd1 commit 0633903
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bootstrap-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -2045,6 +2045,9 @@
0 : this.options.pageSize * (this.options.pageNumber - 1);
params.limit = this.options.pageSize === this.options.formatAllRows() ?
this.options.totalRows : this.options.pageSize;
if (params.limit === 0) {
delete params.limit;
}
}
}

Expand Down

0 comments on commit 0633903

Please sign in to comment.