Two shorter selectors.
This commit is contained in:
parent
7b22bb4839
commit
d6068ddc8f
@ -902,7 +902,7 @@
|
||||
quote.href = "res/" + href;
|
||||
}
|
||||
id = reply.id.slice(2);
|
||||
link = $('.postInfo > .postNum > a[title="Highlight this post"]', reply);
|
||||
link = $('.postNum > a[title="Highlight this post"]', reply);
|
||||
link.href = "res/" + threadID + "#p" + id;
|
||||
link.nextSibling.href = "res/" + threadID + "#q" + id;
|
||||
nodes.push(reply);
|
||||
@ -1374,7 +1374,7 @@
|
||||
},
|
||||
qr: function(thread, quote) {
|
||||
if (quote) {
|
||||
QR.quote.call($('.postInfo > .postNum > a[title="Quote this post"]', $('.post.highlight', thread) || thread));
|
||||
QR.quote.call($('.postNum > a[title="Quote this post"]', $('.post.highlight', thread) || thread));
|
||||
} else {
|
||||
QR.open();
|
||||
}
|
||||
|
||||
@ -690,7 +690,7 @@ ExpandThread =
|
||||
continue if href[0] is '/' # Cross-board quote
|
||||
quote.href = "res/#{href}" # Fix pathnames
|
||||
id = reply.id[2..]
|
||||
link = $ '.postInfo > .postNum > a[title="Highlight this post"]', reply
|
||||
link = $ '.postNum > a[title="Highlight this post"]', reply
|
||||
link.href = "res/#{threadID}#p#{id}"
|
||||
link.nextSibling.href = "res/#{threadID}#q#{id}"
|
||||
nodes.push reply
|
||||
@ -1014,7 +1014,7 @@ Keybinds =
|
||||
|
||||
qr: (thread, quote) ->
|
||||
if quote
|
||||
QR.quote.call $ '.postInfo > .postNum > a[title="Quote this post"]', $('.post.highlight', thread) or thread
|
||||
QR.quote.call $ '.postNum > a[title="Quote this post"]', $('.post.highlight', thread) or thread
|
||||
else
|
||||
QR.open()
|
||||
$('textarea', QR.el).focus()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user