From e32148fc5fbb18213b67306c2ce65cee6cb44428 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Wed, 16 May 2012 14:46:11 +0200 Subject: [PATCH] Fix Quotifying to exising posts. --- 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 b664c3680..341a8cd57 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3339,7 +3339,7 @@ nodes.push(a = $.el('a', { textContent: "" + quote + "\u00A0(Dead)" })); - if (board === g.BOARD && $.id(id)) { + if (board === g.BOARD && $.id("#p" + id)) { a.href = "#p" + id; a.className = 'quotelink'; a.setAttribute('onclick', "replyhl('" + id + "');"); diff --git a/script.coffee b/script.coffee index ea44c39ff..1ed25ed4e 100644 --- a/script.coffee +++ b/script.coffee @@ -2541,7 +2541,7 @@ Quotify = # \u00A0 is nbsp textContent: "#{quote}\u00A0(Dead)" - if board is g.BOARD and $.id id + if board is g.BOARD and $.id "#p#{id}" a.href = "#p#{id}" a.className = 'quotelink' a.setAttribute 'onclick', "replyhl('#{id}');"