From 2828dc7a0929ce126a80d17e9db79554db25c46f Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 19 Jun 2012 15:39:35 +0200 Subject: [PATCH] Fix bug where you couldn't inline a quote. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index b58b878f4..050ccaad1 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3443,7 +3443,7 @@ id: "i" + postID, 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); Get.post(board, threadID, postID, inline); if (!el) { diff --git a/script.coffee b/script.coffee index 442e845cd..cfb66e5ae 100644 --- a/script.coffee +++ b/script.coffee @@ -2687,7 +2687,7 @@ QuoteInline = if isBacklink = /\bbacklink\b/.test q.className q.parentNode else - $.x 'ancestor::*[parent::blockquote][1]', q + $.x 'ancestor-or-self::*[parent::blockquote][1]', q $.after root, inline Get.post board, threadID, postID, inline