qr to replies
This commit is contained in:
parent
69f1cc43d5
commit
7460d28130
@ -416,7 +416,10 @@ keypress = (e) ->
|
|||||||
if temp < 0 then temp = 0
|
if temp < 0 then temp = 0
|
||||||
location.pathname = "/#{g.BOARD}/#{temp}#1"
|
location.pathname = "/#{g.BOARD}/#{temp}#1"
|
||||||
when "I"
|
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
|
quickReply.call qrLink
|
||||||
when "J"
|
when "J"
|
||||||
if e.shiftKey
|
if e.shiftKey
|
||||||
|
|||||||
@ -519,7 +519,11 @@
|
|||||||
}
|
}
|
||||||
return (location.pathname = ("/" + (g.BOARD) + "/" + (temp) + "#1"));
|
return (location.pathname = ("/" + (g.BOARD) + "/" + (temp) + "#1"));
|
||||||
case "I":
|
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);
|
return quickReply.call(qrLink);
|
||||||
case "J":
|
case "J":
|
||||||
if (e.shiftKey) {
|
if (e.shiftKey) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user