From 6e51a00a2f68fc0d6ec20333058257674d17f107 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Fri, 24 Feb 2012 02:46:56 +0100 Subject: [PATCH] Revert "fix for page navigation: show only as much pages as are available for given navigation constraints, not as given by total results size" This reverts commit 73f5a9e8b3b1481bc52ca0c497089d3d6ac5da02. --- htroot/js/yacysearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js index 9b93d5536..0e71bacf3 100644 --- a/htroot/js/yacysearch.js +++ b/htroot/js/yacysearch.js @@ -93,7 +93,7 @@ function statistics(offset, itemscount, itemsperpage, totalcount, localResourceS resnav += ("\">\"arrowleft\" "); } - numberofpages = Math.min(10, 1 + ((itemscount - 1) / itemsperpage)); + numberofpages = Math.min(10, 1 + ((totalcount - 1) / itemsperpage)); if (!numberofpages) numberofpages = 10; for (i = 0; i < numberofpages; i++) { if (i == thispage) {