qr to replies

This commit is contained in:
James Campos 2010-11-19 00:16:53 -08:00
parent 69f1cc43d5
commit 7460d28130
2 changed files with 9 additions and 2 deletions

View File

@ -416,7 +416,10 @@ keypress = (e) ->
if temp < 0 then temp = 0
location.pathname = "/#{g.BOARD}/#{temp}#1"
when "I"
qrLink = $ "#{hash} ~ span[id] a:not(:first-child)"
#TODO scroll when replying to op
[thread] = getThread()
unless qrLink = $ 'td.replyhl span[id] a:not(:first-child)', thread
qrLink = $ "span#nothread#{thread.id} a:not(:first-child)", thread
quickReply.call qrLink
when "J"
if e.shiftKey

View File

@ -519,7 +519,11 @@
}
return (location.pathname = ("/" + (g.BOARD) + "/" + (temp) + "#1"));
case "I":
qrLink = $("" + (hash) + " ~ span[id] a:not(:first-child)");
_ref = getThread();
thread = _ref[0];
if (!(qrLink = $('td.replyhl span[id] a:not(:first-child)', thread))) {
qrLink = $("span#nothread" + (thread.id) + " a:not(:first-child)", thread);
}
return quickReply.call(qrLink);
case "J":
if (e.shiftKey) {