qr to replies
This commit is contained in:
parent
69f1cc43d5
commit
7460d28130
@ -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
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user