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