Fix last page calculation. Closes #660.

This commit is contained in:
Tom Morris 2013-02-11 16:51:34 -05:00
parent b627aa9d5e
commit ab14198899

View File

@ -502,7 +502,7 @@ DataTableView.prototype._onClickFirstPage = 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() {