Fix inline quote removal when post has not been successfully loaded.
Fixes regression from 90b16fc2ab5460e23b78cb5c8975923ddb73c0f2.
This commit is contained in:
parent
5333024b23
commit
a2b6cbf2c3
@ -53,6 +53,7 @@ QuoteInline =
|
|||||||
isBacklink = $.hasClass quotelink, 'backlink'
|
isBacklink = $.hasClass quotelink, 'backlink'
|
||||||
inline = $.el 'div',
|
inline = $.el 'div',
|
||||||
className: 'inline'
|
className: 'inline'
|
||||||
|
inline.dataset.fullID = "#{boardID}.#{postID}"
|
||||||
root = QuoteInline.findRoot(quotelink, isBacklink)
|
root = QuoteInline.findRoot(quotelink, isBacklink)
|
||||||
$.after root, inline
|
$.after root, inline
|
||||||
|
|
||||||
@ -79,7 +80,7 @@ QuoteInline =
|
|||||||
isBacklink = $.hasClass quotelink, 'backlink'
|
isBacklink = $.hasClass quotelink, 'backlink'
|
||||||
# Select the corresponding inlined quote, and remove it.
|
# Select the corresponding inlined quote, and remove it.
|
||||||
root = QuoteInline.findRoot quotelink, isBacklink
|
root = QuoteInline.findRoot quotelink, isBacklink
|
||||||
root = $.x "following-sibling::div[div/@data-full-i-d='#{boardID}.#{postID}'][1]", root
|
root = $.x "following-sibling::div[@data-full-i-d='#{boardID}.#{postID}'][1]", root
|
||||||
qroot = $.x 'ancestor::*[contains(@class,"postContainer")][1]', root
|
qroot = $.x 'ancestor::*[contains(@class,"postContainer")][1]', root
|
||||||
$.rm root
|
$.rm root
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user