Skip to content

Commit

Permalink
fix in result count display
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7967 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Sep 21, 2011
1 parent 4f31869 commit 30d3405
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions htroot/js/yacysearch.js
Expand Up @@ -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 = "";
Expand Down Expand Up @@ -117,5 +120,6 @@ function statistics(offset, itemscount, itemsperpage, totalcount, localResourceS
resnav += (navurlbase + "&startRecord=" + ((thispage + 1) * itemsperpage));
resnav += ("\"><img src=\"env/grafics/navdr.gif\" alt=\"arrowright\" width=\"16\" height=\"16\" /></a>");
}
document.getElementById("resNav").firstChild.nodeValue = resnav;

//document.getElementById("resNav").firstChild.nodeValue = resnav;
}

0 comments on commit 30d3405

Please sign in to comment.