fix in result count display

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7967 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 13 years ago
parent 4f31869c5a
commit 30d340563e

@ -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 += ("\"><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;
}

Loading…
Cancel
Save