fix for javascript error during search (not ready yet)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7923 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 14 years ago
parent dc25c48fc9
commit 656286347e

@ -87,10 +87,10 @@ function statistics(offset, itemscount, itemsperpage, totalcount, localResourceS
resnav += ("<img src=\"env/grafics/navdl.gif\" alt=\"arrowleft\" width=\"16\" height=\"16\" />&nbsp;"); resnav += ("<img src=\"env/grafics/navdl.gif\" alt=\"arrowleft\" width=\"16\" height=\"16\" />&nbsp;");
} else { } else {
resnav += ("<a id=\"prevpage\" href=\""); resnav += ("<a id=\"prevpage\" href=\"");
resnav += (QueryParams.navurl("html", thispage - 1, theQuery, null, originalUrlMask, navigation)); resnav += (navurlbase + "&amp;startRecord=" + ((thispage - 1) * itemsperpage));
resnav += ("\"><img src=\"env/grafics/navdl.gif\" alt=\"arrowleft\" width=\"16\" height=\"16\" /></a>&nbsp;"); resnav += ("\"><img src=\"env/grafics/navdl.gif\" alt=\"arrowleft\" width=\"16\" height=\"16\" /></a>&nbsp;");
} }
numberofpages = Math.min(10, 1 + ((indexcount - 1) / itemsperpage)); numberofpages = Math.min(10, 1 + (((localResourceSize + remoteResourceSize) - 1) / itemsperpage));
for (i = 0; i < numberofpages; i++) { for (i = 0; i < numberofpages; i++) {
if (i == thispage) { if (i == thispage) {
@ -101,7 +101,7 @@ function statistics(offset, itemscount, itemsperpage, totalcount, localResourceS
resnav += ("\" width=\"16\" height=\"16\" />&nbsp;"); resnav += ("\" width=\"16\" height=\"16\" />&nbsp;");
} else { } else {
resnav += ("<a href=\""); resnav += ("<a href=\"");
resnav += (QueryParams.navurl("html", i, theQuery, null, originalUrlMask, navigation)); resnav += (navurlbase + "&amp;startRecord=" + (i * itemsperpage));
resnav += ("\"><img src=\"env/grafics/navd"); resnav += ("\"><img src=\"env/grafics/navd");
resnav += (i + 1); resnav += (i + 1);
resnav += (".gif\" alt=\"page"); resnav += (".gif\" alt=\"page");
@ -113,8 +113,8 @@ function statistics(offset, itemscount, itemsperpage, totalcount, localResourceS
resnav += ("<img src=\"env/grafics/navdr.gif\" alt=\"arrowright\" width=\"16\" height=\"16\" />"); resnav += ("<img src=\"env/grafics/navdr.gif\" alt=\"arrowright\" width=\"16\" height=\"16\" />");
} else { } else {
resnav += ("<a id=\"nextpage\" href=\""); resnav += ("<a id=\"nextpage\" href=\"");
resnav += (QueryParams.navurl("html", thispage + 1, theQuery, null, originalUrlMask, navigation)); resnav += (navurlbase + "&amp;startRecord=" + ((thispage + 1) * itemsperpage));
resnav += ("\"><img src=\"env/grafics/navdr.gif\" alt=\"arrowright\" width=\"16\" height=\"16\" /></a>"); 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