work on updated posts

This commit is contained in:
James Campos 2010-12-28 11:11:44 -08:00
parent 417206ed17
commit 9ff9484031
2 changed files with 9 additions and 4 deletions

View File

@ -1318,10 +1318,12 @@ else #not reply
a.addEventListener('click', expandComment, true)
if getConfig 'Unread Count'
g.replies = $$ 'td.reply, td.replyhl'
g.replies = []
document.title = '(0) ' + document.title
scroll()
document.addEventListener 'scroll', scroll, true
g.callbacks.push (root) ->
g.replies.push $$ 'td.reply, td.replyhl', root
scroll()
callback() for callback in g.callbacks
d.body.addEventListener('DOMNodeInserted', nodeInserted, true)

View File

@ -1685,10 +1685,13 @@
}
}
if (getConfig('Unread Count')) {
g.replies = $$('td.reply, td.replyhl');
g.replies = [];
document.title = '(0) ' + document.title;
scroll();
document.addEventListener('scroll', scroll, true);
g.callbacks.push(function(root) {
g.replies.push($$('td.reply, td.replyhl', root));
return scroll();
});
}
_ref4 = g.callbacks;
for (_m = 0, _len6 = _ref4.length; _m < _len6; _m++) {