Forgot to save the save, have three more shorter selectors.

This commit is contained in:
Nicolas Stepien 2012-06-24 00:27:42 +02:00
parent d6068ddc8f
commit 6fcb7253c0
2 changed files with 6 additions and 6 deletions

View File

@ -1529,7 +1529,7 @@
return $.on(d, 'dragstart dragend', QR.drag);
},
node: function(post) {
return $.on($('.postInfo > .postNum > a[title="Quote this post"]', post.el), 'click', QR.quote);
return $.on($('.postNum > a[title="Quote this post"]', post.el), 'click', QR.quote);
},
open: function() {
if (QR.el) {
@ -3236,7 +3236,7 @@
}
quote.href = "/" + board + "/res/" + href;
}
link = $('.postInfo > .postNum > a[title="Highlight this post"]', pc);
link = $('.postNum > a[title="Highlight this post"]', pc);
link.href = "/" + board + "/res/" + threadID + "#p" + postID;
link.nextSibling.href = "/" + board + "/res/" + threadID + "#q" + postID;
$.replace(root.firstChild, pc);
@ -3770,7 +3770,7 @@
nodes.push($.tn(text));
}
id = quote.match(/\d+$/)[0];
board = (m = quote.match(/^>>>\/([a-z\d]+)/)) ? m[1] : $('.postInfo > .postNum > a[title="Highlight this post"]', post.el).pathname.split('/')[1];
board = (m = quote.match(/^>>>\/([a-z\d]+)/)) ? m[1] : $('.postNum > a[title="Highlight this post"]', post.el).pathname.split('/')[1];
nodes.push(a = $.el('a', {
textContent: "" + quote + "\u00A0(Dead)"
}));

View File

@ -1135,7 +1135,7 @@ QR =
$.on d, 'dragstart dragend', QR.drag
node: (post) ->
$.on $('.postInfo > .postNum > a[title="Quote this post"]', post.el), 'click', QR.quote
$.on $('.postNum > a[title="Quote this post"]', post.el), 'click', QR.quote
open: ->
if QR.el
@ -2500,7 +2500,7 @@ Get =
href = quote.getAttribute 'href'
continue if href[0] is '/' # Cross-board quote, or board link
quote.href = "/#{board}/res/#{href}" # Fix pathnames
link = $ '.postInfo > .postNum > a[title="Highlight this post"]', pc
link = $ '.postNum > a[title="Highlight this post"]', pc
link.href = "/#{board}/res/#{threadID}#p#{postID}"
link.nextSibling.href = "/#{board}/res/#{threadID}#q#{postID}"
@ -2948,7 +2948,7 @@ Quotify =
m[1]
else
# Get the post's board, whether it's inlined or not.
$('.postInfo > .postNum > a[title="Highlight this post"]', post.el).pathname.split('/')[1]
$('.postNum > a[title="Highlight this post"]', post.el).pathname.split('/')[1]
nodes.push a = $.el 'a',
# \u00A0 is nbsp