This commit is contained in:
Nicolas Stepien 2013-02-17 21:53:00 +01:00
parent 70bb35950f
commit e001cd3c98
2 changed files with 4 additions and 4 deletions

View File

@ -2256,14 +2256,14 @@
});
},
prev: function() {
if (g.VIEW === 'reply') {
if (g.VIEW === 'thread') {
return window.scrollTo(0, 0);
} else {
return Nav.scroll(-1);
}
},
next: function() {
if (g.VIEW === 'reply') {
if (g.VIEW === 'thread') {
return window.scrollTo(0, d.body.scrollHeight);
} else {
return Nav.scroll(+1);

View File

@ -1043,13 +1043,13 @@ Nav =
$.on d, '4chanXInitFinished', -> $.add d.body, span
prev: ->
if g.VIEW is 'reply'
if g.VIEW is 'thread'
window.scrollTo 0, 0
else
Nav.scroll -1
next: ->
if g.VIEW is 'reply'
if g.VIEW is 'thread'
window.scrollTo 0, d.body.scrollHeight
else
Nav.scroll +1