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