diff --git a/src/Quotelinks/QuoteInline.coffee b/src/Quotelinks/QuoteInline.coffee index cb63f4780..4ea6b3b43 100644 --- a/src/Quotelinks/QuoteInline.coffee +++ b/src/Quotelinks/QuoteInline.coffee @@ -81,8 +81,12 @@ QuoteInline = # Select the corresponding inlined quote, and remove it. root = QuoteInline.findRoot quotelink, isBacklink root = $.x "following-sibling::div[@id='i#{postID}'][1]", root + qroot = $.x 'ancestor::*[contains(@class,"postContainer")][1]', root $.rm root + unless $ '.inline', qroot + $.rmClass qroot, 'hasInline' + # Stop if it only contains text. return unless el = root.firstElementChild