From 7023841e485e2193ca7ea4dfbb8191a533719d91 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sun, 14 Nov 2010 15:16:10 -0800 Subject: [PATCH] 0-9, not 1-10 --- 4chan_x.coffee | 2 +- 4chan_x.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/4chan_x.coffee b/4chan_x.coffee index f4bfce5ad..40b91ec34 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -406,7 +406,7 @@ keyAct = (e) -> location.pathname = "/#{g.BOARD}/#{temp}#1" when "J" temp = position + count - if temp > 10 then temp = 10 + if temp > 9 then temp = 9 location.hash = 'p' + temp when "K" temp = position - count diff --git a/4chan_x.js b/4chan_x.js index 462dfb53a..533cbf5a3 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -503,8 +503,8 @@ break; case "J": temp = position + count; - if (temp > 10) { - temp = 10; + if (temp > 9) { + temp = 9; } location.hash = 'p' + temp; break;