This commit is contained in:
James Campos 2011-04-30 06:08:00 -07:00
parent 5fed5f4a63
commit f93e46cbe6
2 changed files with 8 additions and 6 deletions

View File

@ -838,8 +838,10 @@
} }
if (delta === +1) { if (delta === +1) {
if (i === nav.threads.length || (innerHeight + pageYOffset === d.body.scrollHeight)) { if (i === nav.threads.length || (innerHeight + pageYOffset === d.body.scrollHeight)) {
window.location = "" + (g.PAGENUM + 1) + "#0"; if ($('table.pages input[value="Next"]')) {
return; window.location = "" + (g.PAGENUM + 1) + "#0";
return;
}
} }
} }
top = nav.threads[i].getBoundingClientRect().top; top = nav.threads[i].getBoundingClientRect().top;

View File

@ -571,8 +571,6 @@ keybinds =
return return
nav = nav =
#TODO page nav
#FIXME /b/
# #
init: -> init: ->
span = $.el 'span', span = $.el 'span',
@ -627,8 +625,10 @@ nav =
# if we're at the last thread, or we're at the bottom of the page. # if we're at the last thread, or we're at the bottom of the page.
# kind of hackish, what we really need to do is make nav.getThread smarter. # kind of hackish, what we really need to do is make nav.getThread smarter.
if i is nav.threads.length or (innerHeight + pageYOffset == d.body.scrollHeight) if i is nav.threads.length or (innerHeight + pageYOffset == d.body.scrollHeight)
window.location = "#{g.PAGENUM + 1}#0" if $ 'table.pages input[value="Next"]'
return window.location = "#{g.PAGENUM + 1}#0"
return
#TODO sfx
{top} = nav.threads[i].getBoundingClientRect() {top} = nav.threads[i].getBoundingClientRect()
window.scrollBy 0, top window.scrollBy 0, top