Fix standard input pagination calculation

Fixes #275
pull/277/head
Julian Motz 9 years ago
parent 426ebfb4d5
commit 0ea57954cd

@ -157,7 +157,7 @@
iNewStart = 0; iNewStart = 0;
} }
if (iNewStart >= oSettings.fnRecordsDisplay()) { 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; oSettings._iDisplayStart = iNewStart;

Loading…
Cancel
Save