From a2b6cbf2c36980e5807d3b48e25724aeb859e66b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 23 Jan 2016 21:33:12 -0800 Subject: [PATCH] Fix inline quote removal when post has not been successfully loaded. Fixes regression from 90b16fc2ab5460e23b78cb5c8975923ddb73c0f2. --- src/Quotelinks/QuoteInline.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Quotelinks/QuoteInline.coffee b/src/Quotelinks/QuoteInline.coffee index 8afe993d6..89bf41c51 100644 --- a/src/Quotelinks/QuoteInline.coffee +++ b/src/Quotelinks/QuoteInline.coffee @@ -53,6 +53,7 @@ QuoteInline = isBacklink = $.hasClass quotelink, 'backlink' inline = $.el 'div', className: 'inline' + inline.dataset.fullID = "#{boardID}.#{postID}" root = QuoteInline.findRoot(quotelink, isBacklink) $.after root, inline @@ -79,7 +80,7 @@ QuoteInline = isBacklink = $.hasClass quotelink, 'backlink' # Select the corresponding inlined quote, and remove it. 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 $.rm root