Skip to content

Commit

Permalink
Fix standard input pagination calculation
Browse files Browse the repository at this point in the history
Fixes #275
  • Loading branch information
julkue committed Jul 7, 2016
1 parent 426ebfb commit 0ea5795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pagination/input.js
Expand Up @@ -157,7 +157,7 @@
iNewStart = 0;
}
if (iNewStart >= oSettings.fnRecordsDisplay()) {
iNewStart = (Math.ceil((oSettings.fnRecordsDisplay() - 1) / oSettings._iDisplayLength) - 1) * oSettings._iDisplayLength;
iNewStart = (Math.ceil((oSettings.fnRecordsDisplay()) / oSettings._iDisplayLength) - 1) * oSettings._iDisplayLength;
}

oSettings._iDisplayStart = iNewStart;
Expand Down

0 comments on commit 0ea5795

Please sign in to comment.