diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js index 5c467c27f..dd9e03f8e 100644 --- a/htroot/js/yacysearch.js +++ b/htroot/js/yacysearch.js @@ -92,7 +92,7 @@ function statistics(offset, itemscount, itemsperpage, totalcount, localResourceS resnav += ("\">\"arrowleft\" "); } - numberofpages = Math.floor(Math.min(10, 1 + ((totalcount - 1) / itemsperpage))); + numberofpages = Math.floor(Math.min(10, 1 + ((totalcount.replace(/\./g,'') - 1) / itemsperpage))); if (!numberofpages) numberofpages = 10; for (i = 0; i < numberofpages; i++) { if (i == thispage) { @@ -121,3 +121,5 @@ function statistics(offset, itemscount, itemsperpage, totalcount, localResourceS document.getElementById("resNav").innerHTML = resnav; } + +