Get the ancestorest post as context.
This commit is contained in:
parent
c72d8fcdeb
commit
971869ac03
@ -1666,7 +1666,7 @@
|
|||||||
className: 'inline'
|
className: 'inline'
|
||||||
});
|
});
|
||||||
root = (isBacklink = $.hasClass(quotelink, 'backlink')) ? quotelink.parentNode.parentNode : $.x('ancestor-or-self::*[parent::blockquote][1]', quotelink);
|
root = (isBacklink = $.hasClass(quotelink, 'backlink')) ? quotelink.parentNode.parentNode : $.x('ancestor-or-self::*[parent::blockquote][1]', quotelink);
|
||||||
context = Get.postFromRoot($.x('ancestor::div[contains(@class,"postContainer")][1]', quotelink));
|
context = Get.postFromRoot($.x('ancestor::div[parent::div[@class="thread"]][1]', quotelink));
|
||||||
$.after(root, inline);
|
$.after(root, inline);
|
||||||
Get.postClone(board, threadID, postID, inline, context);
|
Get.postClone(board, threadID, postID, inline, context);
|
||||||
if (!(board === g.BOARD.ID && $.x("ancestor::div[@id='t" + threadID + "']", quotelink))) {
|
if (!(board === g.BOARD.ID && $.x("ancestor::div[@id='t" + threadID + "']", quotelink))) {
|
||||||
@ -1750,7 +1750,7 @@
|
|||||||
className: 'reply dialog'
|
className: 'reply dialog'
|
||||||
});
|
});
|
||||||
UI.hover(e);
|
UI.hover(e);
|
||||||
context = Get.postFromRoot($.x('ancestor::div[contains(@class,"postContainer")][1]', this));
|
context = Get.postFromRoot($.x('ancestor::div[parent::div[@class="thread"]][1]', this));
|
||||||
$.add(d.body, qp);
|
$.add(d.body, qp);
|
||||||
Get.postClone(board, threadID, postID, qp, context);
|
Get.postClone(board, threadID, postID, qp, context);
|
||||||
$.on(this, 'mousemove', UI.hover);
|
$.on(this, 'mousemove', UI.hover);
|
||||||
|
|||||||
@ -1481,7 +1481,7 @@ QuoteInline =
|
|||||||
quotelink.parentNode.parentNode
|
quotelink.parentNode.parentNode
|
||||||
else
|
else
|
||||||
$.x 'ancestor-or-self::*[parent::blockquote][1]', quotelink
|
$.x 'ancestor-or-self::*[parent::blockquote][1]', quotelink
|
||||||
context = Get.postFromRoot $.x 'ancestor::div[contains(@class,"postContainer")][1]', quotelink
|
context = Get.postFromRoot $.x 'ancestor::div[parent::div[@class="thread"]][1]', quotelink
|
||||||
$.after root, inline
|
$.after root, inline
|
||||||
Get.postClone board, threadID, postID, inline, context
|
Get.postClone board, threadID, postID, inline, context
|
||||||
|
|
||||||
@ -1574,7 +1574,7 @@ QuotePreview =
|
|||||||
id: 'qp'
|
id: 'qp'
|
||||||
className: 'reply dialog'
|
className: 'reply dialog'
|
||||||
UI.hover e
|
UI.hover e
|
||||||
context = Get.postFromRoot $.x 'ancestor::div[contains(@class,"postContainer")][1]', @
|
context = Get.postFromRoot $.x 'ancestor::div[parent::div[@class="thread"]][1]', @
|
||||||
$.add d.body, qp
|
$.add d.body, qp
|
||||||
Get.postClone board, threadID, postID, qp, context
|
Get.postClone board, threadID, postID, qp, context
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user