fix 0 and l
This commit is contained in:
parent
790cf29fae
commit
5201e65d5c
@ -381,7 +381,7 @@ keyAct = (e) ->
|
|||||||
if char in '1234567890'
|
if char in '1234567890'
|
||||||
temp = Number char
|
temp = Number char
|
||||||
if temp is 0 and count is 0 # special - immediately go to page 0
|
if temp is 0 and count is 0 # special - immediately go to page 0
|
||||||
location.pathname = "/#{g.BOARD}/#1"
|
location.pathname = "/#{g.BOARD}"
|
||||||
else
|
else
|
||||||
g.count = (count * 10) + temp
|
g.count = (count * 10) + temp
|
||||||
return
|
return
|
||||||
@ -417,7 +417,7 @@ keyAct = (e) ->
|
|||||||
when "L"
|
when "L"
|
||||||
temp = g.PAGENUM + count
|
temp = g.PAGENUM + count
|
||||||
if temp > 15 then temp = 15
|
if temp > 15 then temp = 15
|
||||||
location.pathname = "/#{g.BOARD}/#{temp}#1"
|
location.pathname = "/#{g.BOARD}/#{temp}#0"
|
||||||
when "M"
|
when "M"
|
||||||
img = $("#{hash} ~ img")
|
img = $("#{hash} ~ img")
|
||||||
watch.call 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)) {
|
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);
|
temp = Number(char);
|
||||||
if (temp === 0 && count === 0) {
|
if (temp === 0 && count === 0) {
|
||||||
location.pathname = ("/" + (g.BOARD) + "/#1");
|
location.pathname = ("/" + (g.BOARD));
|
||||||
} else {
|
} else {
|
||||||
g.count = (count * 10) + temp;
|
g.count = (count * 10) + temp;
|
||||||
}
|
}
|
||||||
@ -523,7 +523,7 @@
|
|||||||
if (temp > 15) {
|
if (temp > 15) {
|
||||||
temp = 15;
|
temp = 15;
|
||||||
}
|
}
|
||||||
location.pathname = ("/" + (g.BOARD) + "/" + (temp) + "#1");
|
location.pathname = ("/" + (g.BOARD) + "/" + (temp) + "#0");
|
||||||
break;
|
break;
|
||||||
case "M":
|
case "M":
|
||||||
img = $("" + (hash) + " ~ img");
|
img = $("" + (hash) + " ~ img");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user