Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix of page navigation for formatted totalcount numbers
orbiter7ff10bdb1bfb
diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.jsindex 5c467c27f..dd9e03f8e 100644--- a/htroot/js/yacysearch.js+++ b/htroot/js/yacysearch.js@@ -92,7 +92,7 @@ function statistics(offset, itemscount, itemsperpage, totalcount, localResourceSresnav += ("\"><img src=\"env/grafics/navdl.gif\" alt=\"arrowleft\" width=\"16\" height=\"16\" /></a> ");}- 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, localResourceSdocument.getElementById("resNav").innerHTML = resnav;}++