From 30d340563e0f67b5b8c887d7e72e1db96fd1d290 Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 21 Sep 2011 11:01:01 +0000 Subject: [PATCH] fix in result count display git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7967 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/js/yacysearch.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/htroot/js/yacysearch.js b/htroot/js/yacysearch.js index a887bc04d..270f387f8 100644 --- a/htroot/js/yacysearch.js +++ b/htroot/js/yacysearch.js @@ -71,15 +71,18 @@ function addHover() { } function statistics(offset, itemscount, itemsperpage, totalcount, localResourceSize, remoteResourceSize, remoteIndexCount, remotePeerCount, navurlbase) { + if (totalcount == 0) return; if (offset >= 0) document.getElementById("resultsOffset").firstChild.nodeValue = offset; - if (itemscount == 0) return; - document.getElementById("itemscount").firstChild.nodeValue = itemscount; + if (itemscount >= 0) document.getElementById("itemscount").firstChild.nodeValue = itemscount; document.getElementById("totalcount").firstChild.nodeValue = totalcount; if (document.getElementById("localResourceSize") == null) return; document.getElementById("localResourceSize").firstChild.nodeValue = localResourceSize; document.getElementById("remoteResourceSize").firstChild.nodeValue = remoteResourceSize; document.getElementById("remoteIndexCount").firstChild.nodeValue = remoteIndexCount; document.getElementById("remotePeerCount").firstChild.nodeValue = remotePeerCount; + + var resNav = document.getElementById("resNav"); + resNav.firstChild.nodeValue = "X"; // compose page navigation resnav = ""; @@ -117,5 +120,6 @@ function statistics(offset, itemscount, itemsperpage, totalcount, localResourceS resnav += (navurlbase + "&startRecord=" + ((thispage + 1) * itemsperpage)); resnav += ("\">\"arrowright\""); } - document.getElementById("resNav").firstChild.nodeValue = resnav; + + //document.getElementById("resNav").firstChild.nodeValue = resnav; }