first thread, prev thread -> prev page

This commit is contained in:
James Campos 2011-04-25 19:15:01 -07:00
parent dfed85d6d1
commit 6af9e3587c
2 changed files with 9 additions and 2 deletions

View File

@ -824,7 +824,11 @@
i += delta;
}
if (i === -1) {
window.scrollTo(0, 0);
if (g.PAGENUM === 0) {
window.scrollTo(0, 0);
} else {
window.location = "" + (g.PAGENUM - 1) + "#p0";
}
return;
}
if (delta === +1) {

View File

@ -613,7 +613,10 @@ nav =
i += delta
if i is -1
window.scrollTo 0, 0
if g.PAGENUM is 0
window.scrollTo 0, 0
else
window.location = "#{g.PAGENUM - 1}#p0"
return
if delta is +1
# if we're at the last thread, or we're at the bottom of the page.