0-9, not 1-10

This commit is contained in:
James Campos 2010-11-14 15:16:10 -08:00
parent fdbd55038b
commit 7023841e48
2 changed files with 3 additions and 3 deletions

View File

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

View File

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