fix reply hiding

This commit is contained in:
James Campos 2011-05-10 00:05:33 -07:00
parent 699b580cd8
commit 641a7d668e
2 changed files with 4 additions and 4 deletions

View File

@ -604,14 +604,14 @@
}, },
node: function(root) { node: function(root) {
var a, dd, id, reply; var a, dd, id, reply;
if (!(dd = $('td.doubldash', root))) { if (!(dd = $('td.doubledash', root))) {
return; return;
} }
a = $.el('a', { a = $.el('a', {
textContent: '[ - ]' textContent: '[ - ]'
}); });
$.bind(a, 'click', replyHiding.cb.hide); $.bind(a, 'click', replyHiding.cb.hide);
$.replace(dd, a); $.replace(dd.firstChild, a);
reply = dd.nextSibling; reply = dd.nextSibling;
id = reply.id; id = reply.id;
if (id in g.hiddenReplies) { if (id in g.hiddenReplies) {

View File

@ -429,11 +429,11 @@ replyHiding =
replyHiding.hide reply replyHiding.hide reply
node: (root) -> node: (root) ->
return unless dd = $ 'td.doubldash', root return unless dd = $ 'td.doubledash', root
a = $.el 'a', a = $.el 'a',
textContent: '[ - ]' textContent: '[ - ]'
$.bind a, 'click', replyHiding.cb.hide $.bind a, 'click', replyHiding.cb.hide
$.replace dd, a $.replace dd.firstChild, a
reply = dd.nextSibling reply = dd.nextSibling
id = reply.id id = reply.id