From 359d508c309b220303ffe51cdf51522470168473 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 1 May 2012 17:17:41 +0200 Subject: [PATCH] Fix class of filtered backlinks. --- 4chan_x.user.js | 4 ++-- script.coffee | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a81386caa..dd9334a61 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3052,7 +3052,7 @@ } a = $.el('a', { href: "#p" + post.id, - className: post.root.hidden ? 'filtered backlink' : 'backlink', + className: post.el.hidden ? 'filtered backlink' : 'backlink', textContent: QuoteBacklink.funk(post.id) }); for (qid in quotes) { @@ -3373,7 +3373,7 @@ textContent: "" + quote + "\u00A0(Dead)" })); if (board === g.BOARD && $.id(id)) { - a.href = "#" + id; + a.href = "#p" + id; a.className = 'quotelink'; a.setAttribute('onclick', "replyhl('" + id + "');"); } else { diff --git a/script.coffee b/script.coffee index e57705950..a2d74d442 100644 --- a/script.coffee +++ b/script.coffee @@ -2380,7 +2380,7 @@ QuoteBacklink = quotes[qid] = true a = $.el 'a', href: "#p#{post.id}" - className: if post.root.hidden then 'filtered backlink' else 'backlink' + className: if post.el.hidden then 'filtered backlink' else 'backlink' textContent: QuoteBacklink.funk post.id for qid of quotes # Don't backlink the OP.