Forgot to save the save, have three more shorter selectors.
This commit is contained in:
parent
d6068ddc8f
commit
6fcb7253c0
@ -1529,7 +1529,7 @@
|
|||||||
return $.on(d, 'dragstart dragend', QR.drag);
|
return $.on(d, 'dragstart dragend', QR.drag);
|
||||||
},
|
},
|
||||||
node: function(post) {
|
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() {
|
open: function() {
|
||||||
if (QR.el) {
|
if (QR.el) {
|
||||||
@ -3236,7 +3236,7 @@
|
|||||||
}
|
}
|
||||||
quote.href = "/" + board + "/res/" + href;
|
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.href = "/" + board + "/res/" + threadID + "#p" + postID;
|
||||||
link.nextSibling.href = "/" + board + "/res/" + threadID + "#q" + postID;
|
link.nextSibling.href = "/" + board + "/res/" + threadID + "#q" + postID;
|
||||||
$.replace(root.firstChild, pc);
|
$.replace(root.firstChild, pc);
|
||||||
@ -3770,7 +3770,7 @@
|
|||||||
nodes.push($.tn(text));
|
nodes.push($.tn(text));
|
||||||
}
|
}
|
||||||
id = quote.match(/\d+$/)[0];
|
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', {
|
nodes.push(a = $.el('a', {
|
||||||
textContent: "" + quote + "\u00A0(Dead)"
|
textContent: "" + quote + "\u00A0(Dead)"
|
||||||
}));
|
}));
|
||||||
|
|||||||
@ -1135,7 +1135,7 @@ QR =
|
|||||||
$.on d, 'dragstart dragend', QR.drag
|
$.on d, 'dragstart dragend', QR.drag
|
||||||
|
|
||||||
node: (post) ->
|
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: ->
|
open: ->
|
||||||
if QR.el
|
if QR.el
|
||||||
@ -2500,7 +2500,7 @@ Get =
|
|||||||
href = quote.getAttribute 'href'
|
href = quote.getAttribute 'href'
|
||||||
continue if href[0] is '/' # Cross-board quote, or board link
|
continue if href[0] is '/' # Cross-board quote, or board link
|
||||||
quote.href = "/#{board}/res/#{href}" # Fix pathnames
|
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.href = "/#{board}/res/#{threadID}#p#{postID}"
|
||||||
link.nextSibling.href = "/#{board}/res/#{threadID}#q#{postID}"
|
link.nextSibling.href = "/#{board}/res/#{threadID}#q#{postID}"
|
||||||
|
|
||||||
@ -2948,7 +2948,7 @@ Quotify =
|
|||||||
m[1]
|
m[1]
|
||||||
else
|
else
|
||||||
# Get the post's board, whether it's inlined or not.
|
# 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',
|
nodes.push a = $.el 'a',
|
||||||
# \u00A0 is nbsp
|
# \u00A0 is nbsp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user