From baf19bed4b09c92dc38c1031d07b3e5e1150ea30 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 20 May 2011 00:44:23 +0200 Subject: [PATCH] Fix quoteOP bug on board pages. close #109 --- 4chan_x.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index 4046e8ddf..d0d201249 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1900,7 +1900,7 @@ if (root.className === 'inline') { return; } - tid = g.THREAD_ID || $.x('ancestor::div[@class="thread"]/div', this).id; + tid = g.THREAD_ID || $.x('ancestor::div[@class="thread"]/div', root).id; _ref = $$('a.quotelink', root); _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { diff --git a/script.coffee b/script.coffee index 2269727ec..19c4fae5a 100644 --- a/script.coffee +++ b/script.coffee @@ -1500,7 +1500,7 @@ quoteOP = g.callbacks.push quoteOP.node node: (root) -> return if root.className is 'inline' - tid = g.THREAD_ID or $.x('ancestor::div[@class="thread"]/div', this).id + tid = g.THREAD_ID or $.x('ancestor::div[@class="thread"]/div', root).id for quote in $$ 'a.quotelink', root if quote.hash[1..] is tid quote.textContent += ' (OP)'