mirror of
https://github.com/opnsense/core.git
synced 2026-06-09 08:56:31 -04:00
bootgrid: prevent NaN pagination values for non-ajax grids when row count is set to all
(cherry picked from commit 401677167f)
This commit is contained in:
parent
2b0799c446
commit
2f8a759182
1 changed files with 1 additions and 1 deletions
|
|
@ -1439,9 +1439,9 @@ class UIBootgrid {
|
|||
|
||||
if (this.options.ajax) {
|
||||
totalRows = this.paginationTotal;
|
||||
pageSize = this.curRowCount === true ? this.paginationTotal : this.curRowCount;
|
||||
}
|
||||
|
||||
pageSize = this.curRowCount === true ? this.paginationTotal : this.curRowCount;
|
||||
end = currentPage * pageSize;
|
||||
start = (totalRows === 0) ? 0 : ((currentPage - 1) * pageSize) + 1;
|
||||
end = (totalRows === 0 || end === -1 || end > totalRows) ? totalRows : end;
|
||||
|
|
|
|||
Loading…
Reference in a new issue