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) {
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) {

View File

@ -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