Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix of page navigation for formatted totalcount numbers

orbiter7ff10bdb1bfb
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 += ("\"><img src=\"env/grafics/navdl.gif\" alt=\"arrowleft\" width=\"16\" height=\"16\" /></a>&nbsp;");
}
- 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;
}
+
+