From 641a7d668e6b7309428535d79d173dc2fbe0c213 Mon Sep 17 00:00:00 2001 From: James Campos Date: Tue, 10 May 2011 00:05:33 -0700 Subject: [PATCH] fix reply hiding --- 4chan_x.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index 09c2a450a..cceb2e283 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -604,14 +604,14 @@ }, node: function(root) { var a, dd, id, reply; - if (!(dd = $('td.doubldash', root))) { + if (!(dd = $('td.doubledash', root))) { return; } a = $.el('a', { textContent: '[ - ]' }); $.bind(a, 'click', replyHiding.cb.hide); - $.replace(dd, a); + $.replace(dd.firstChild, a); reply = dd.nextSibling; id = reply.id; if (id in g.hiddenReplies) { diff --git a/script.coffee b/script.coffee index fb96d9d98..0a4d85ed4 100644 --- a/script.coffee +++ b/script.coffee @@ -429,11 +429,11 @@ replyHiding = replyHiding.hide reply node: (root) -> - return unless dd = $ 'td.doubldash', root + return unless dd = $ 'td.doubledash', root a = $.el 'a', textContent: '[ - ]' $.bind a, 'click', replyHiding.cb.hide - $.replace dd, a + $.replace dd.firstChild, a reply = dd.nextSibling id = reply.id