fix reply hiding
This commit is contained in:
parent
699b580cd8
commit
641a7d668e
@ -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) {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user