Two shorter selectors.

This commit is contained in:
Nicolas Stepien 2012-06-24 00:26:00 +02:00
parent 7b22bb4839
commit d6068ddc8f
2 changed files with 4 additions and 4 deletions

View File

@ -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();
}

View File

@ -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()