fix 0 and l

This commit is contained in:
James Campos 2010-11-17 07:08:11 -08:00
parent 790cf29fae
commit 5201e65d5c
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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");