fix 0 and l
This commit is contained in:
parent
790cf29fae
commit
5201e65d5c
@ -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
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user