From dadbb4e792c7d29a9453cff10d84e25a31226be9 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 20 Jan 2013 13:23:49 +0100 Subject: [PATCH] Fix quoting inside inlined backlinks. Fix #900 Well that's interesting: selectors with Element.querySelector|All will search for corresponding elements inside the whole document, and will only return elements that are inside your given root element. --- 4chan_x.user.js | 2 +- changelog | 2 ++ script.coffee | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index dc42b47e0..c9df2cbf6 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1787,7 +1787,7 @@ return $.on(d, 'dragstart dragend', QR.drag); }, node: function(post) { - return $.on($('.postInfo a[title="Quote this post"]', post.el), 'click', QR.quote); + return $.on($('a[title="Quote this post"]', $('.postInfo', post.el)), 'click', QR.quote); }, open: function() { if (QR.el) { diff --git a/changelog b/changelog index 924430c5b..15c0f124d 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,6 @@ master +- Mayhem + Fix quoting inside inlined backlinks. 2.37.4 - James Campos diff --git a/script.coffee b/script.coffee index 3ac469375..2244b3e79 100644 --- a/script.coffee +++ b/script.coffee @@ -1380,7 +1380,7 @@ QR = $.on d, 'dragstart dragend', QR.drag node: (post) -> - $.on $('.postInfo a[title="Quote this post"]', post.el), 'click', QR.quote + $.on $('a[title="Quote this post"]', $('.postInfo', post.el)), 'click', QR.quote open: -> if QR.el