fix of page navigation for formatted totalcount numbers

pull/1/head
orbiter 12 years ago
parent 08d28eed1a
commit 7ff10bdb1b

@ -92,7 +92,7 @@ function statistics(offset, itemscount, itemsperpage, totalcount, localResourceS
resnav += ("\"><img src=\"env/grafics/navdl.gif\" alt=\"arrowleft\" width=\"16\" height=\"16\" /></a>&nbsp;");
}
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, localResourceS
document.getElementById("resNav").innerHTML = resnav;
}

Loading…
Cancel
Save