From 5201e65d5c4fe724514be1ad010c73ac044604c3 Mon Sep 17 00:00:00 2001 From: James Campos Date: Wed, 17 Nov 2010 07:08:11 -0800 Subject: [PATCH] fix 0 and l --- 4chan_x.coffee | 4 ++-- 4chan_x.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.coffee b/4chan_x.coffee index bad13fc57..6ae20d6e8 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -381,7 +381,7 @@ keyAct = (e) -> if char in '1234567890' temp = Number char if temp is 0 and count is 0 # special - immediately go to page 0 - location.pathname = "/#{g.BOARD}/#1" + location.pathname = "/#{g.BOARD}" else g.count = (count * 10) + temp return @@ -417,7 +417,7 @@ keyAct = (e) -> when "L" temp = g.PAGENUM + count if temp > 15 then temp = 15 - location.pathname = "/#{g.BOARD}/#{temp}#1" + location.pathname = "/#{g.BOARD}/#{temp}#0" when "M" img = $("#{hash} ~ img") watch.call img diff --git a/4chan_x.js b/4chan_x.js index 5f5ed764f..7fff8bfa9 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -468,7 +468,7 @@ if ((function(){ for (var _i=0, _len='1234567890'.length; _i<_len; _i++) { if ('1234567890'[_i] === char) return true; } return false; }).call(this)) { temp = Number(char); if (temp === 0 && count === 0) { - location.pathname = ("/" + (g.BOARD) + "/#1"); + location.pathname = ("/" + (g.BOARD)); } else { g.count = (count * 10) + temp; } @@ -523,7 +523,7 @@ if (temp > 15) { temp = 15; } - location.pathname = ("/" + (g.BOARD) + "/" + (temp) + "#1"); + location.pathname = ("/" + (g.BOARD) + "/" + (temp) + "#0"); break; case "M": img = $("" + (hash) + " ~ img");