From e001cd3c98ade9880eb08e310a47d6c67457b9c2 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 17 Feb 2013 21:53:00 +0100 Subject: [PATCH] typo --- 4chan_x.user.js | 4 ++-- src/features.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 824e08556..76a9350b3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -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); diff --git a/src/features.coffee b/src/features.coffee index 0ab6eafbc..7bb9dd1ea 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -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