From 0ea57954cd0e698114a3c1a67bf64e3e9363cf2c Mon Sep 17 00:00:00 2001 From: Julian Motz Date: Thu, 7 Jul 2016 16:38:16 +0200 Subject: [PATCH] Fix standard input pagination calculation Fixes #275 --- pagination/input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagination/input.js b/pagination/input.js index 4c4b939..ae11a36 100644 --- a/pagination/input.js +++ b/pagination/input.js @@ -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;