This commit is contained in:
Jordan Bates 2013-05-27 15:43:02 -07:00
commit c5148ff966

View File

@ -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