max page after key press

pull/212/head
pziewiec 9 years ago
parent 4517c14cbb
commit eb652e13b1

@ -147,7 +147,7 @@ $.fn.dataTableExt.oPagination.input = {
{ {
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() - 1) / oSettings._iDisplayLength) - 1) * oSettings._iDisplayLength;
} }

Loading…
Cancel
Save