Merge pull request #212 from pziewiec/patch-1

Fix - paging: max page after key pressed (input plug-in)
pull/213/head 1.10.9
Allan Jardine 9 years ago
commit 92575a49cb

@ -147,7 +147,7 @@ $.fn.dataTableExt.oPagination.input = {
{
iNewStart = 0;
}
if (iNewStart > oSettings.fnRecordsDisplay())
if (iNewStart >= oSettings.fnRecordsDisplay())
{
iNewStart = (Math.ceil((oSettings.fnRecordsDisplay() - 1) / oSettings._iDisplayLength) - 1) * oSettings._iDisplayLength;
}

Loading…
Cancel
Save