Fix last page calculation. Closes #660.
This commit is contained in:
parent
b627aa9d5e
commit
ab14198899
@ -502,7 +502,7 @@ DataTableView.prototype._onClickFirstPage = function(elmt, evt) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
DataTableView.prototype._onClickLastPage = function(elmt, evt) {
|
DataTableView.prototype._onClickLastPage = function(elmt, evt) {
|
||||||
this._showRows(Math.floor(theProject.rowModel.filtered / this._pageSize) * this._pageSize);
|
this._showRows(Math.floor((theProject.rowModel.filtered - 1) / this._pageSize) * this._pageSize);
|
||||||
};
|
};
|
||||||
|
|
||||||
DataTableView.prototype._getSortingCriteriaCount = function() {
|
DataTableView.prototype._getSortingCriteriaCount = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user