Fix bug where you couldn't inline a quote.

This commit is contained in:
Nicolas Stepien 2012-06-19 15:39:35 +02:00
parent eca5a9a58a
commit 2828dc7a09
2 changed files with 2 additions and 2 deletions

View File

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

View File

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