Fix bug where you couldn't inline a quote.
This commit is contained in:
parent
eca5a9a58a
commit
2828dc7a09
@ -3443,7 +3443,7 @@
|
|||||||
id: "i" + postID,
|
id: "i" + postID,
|
||||||
className: el ? 'inline' : 'inline crosspost'
|
className: el ? 'inline' : 'inline crosspost'
|
||||||
});
|
});
|
||||||
root = (isBacklink = /\bbacklink\b/.test(q.className)) ? q.parentNode : $.x('ancestor::*[parent::blockquote][1]', q);
|
root = (isBacklink = /\bbacklink\b/.test(q.className)) ? q.parentNode : $.x('ancestor-or-self::*[parent::blockquote][1]', q);
|
||||||
$.after(root, inline);
|
$.after(root, inline);
|
||||||
Get.post(board, threadID, postID, inline);
|
Get.post(board, threadID, postID, inline);
|
||||||
if (!el) {
|
if (!el) {
|
||||||
|
|||||||
@ -2687,7 +2687,7 @@ QuoteInline =
|
|||||||
if isBacklink = /\bbacklink\b/.test q.className
|
if isBacklink = /\bbacklink\b/.test q.className
|
||||||
q.parentNode
|
q.parentNode
|
||||||
else
|
else
|
||||||
$.x 'ancestor::*[parent::blockquote][1]', q
|
$.x 'ancestor-or-self::*[parent::blockquote][1]', q
|
||||||
$.after root, inline
|
$.after root, inline
|
||||||
Get.post board, threadID, postID, inline
|
Get.post board, threadID, postID, inline
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user