fix unread count
ugh, I want to change the callback system
This commit is contained in:
parent
3841b28ad1
commit
94dd31335f
@ -1322,7 +1322,7 @@ if getConfig 'Unread Count'
|
|||||||
document.title = '(0) ' + document.title
|
document.title = '(0) ' + document.title
|
||||||
document.addEventListener 'scroll', scroll, true
|
document.addEventListener 'scroll', scroll, true
|
||||||
g.callbacks.push (root) ->
|
g.callbacks.push (root) ->
|
||||||
g.replies.push $$ 'td.reply, td.replyhl', root
|
g.replies = g.replies.concat $$ 'td.reply, td.replyhl', root
|
||||||
scroll()
|
scroll()
|
||||||
|
|
||||||
callback() for callback in g.callbacks
|
callback() for callback in g.callbacks
|
||||||
|
|||||||
@ -1689,7 +1689,7 @@
|
|||||||
document.title = '(0) ' + document.title;
|
document.title = '(0) ' + document.title;
|
||||||
document.addEventListener('scroll', scroll, true);
|
document.addEventListener('scroll', scroll, true);
|
||||||
g.callbacks.push(function(root) {
|
g.callbacks.push(function(root) {
|
||||||
g.replies.push($$('td.reply, td.replyhl', root));
|
g.replies = g.replies.concat($$('td.reply, td.replyhl', root));
|
||||||
return scroll();
|
return scroll();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user