Unread favicon reset fix.

This commit is contained in:
Nicolas Stepien 2012-03-27 18:14:47 +02:00
parent d851ecce2d
commit 69c69fe91b
2 changed files with 4 additions and 4 deletions

View File

@ -973,7 +973,7 @@
break; break;
case Conf.unreadCountTo0: case Conf.unreadCountTo0:
Unread.replies = []; Unread.replies = [];
Unread.update(); Unread.update(true);
break; break;
case Conf.expandImage: case Conf.expandImage:
Keybinds.img(thread); Keybinds.img(thread);
@ -3136,7 +3136,7 @@
inline = QuoteInline.table(id, el.innerHTML); inline = QuoteInline.table(id, el.innerHTML);
if ((i = Unread.replies.indexOf(el.parentNode.parentNode.parentNode)) !== -1) { if ((i = Unread.replies.indexOf(el.parentNode.parentNode.parentNode)) !== -1) {
Unread.replies.splice(i, 1); Unread.replies.splice(i, 1);
Unread.update(); Unread.update(true);
} }
if (/\bbacklink\b/.test(q.className)) { if (/\bbacklink\b/.test(q.className)) {
$.after(q.parentNode, inline); $.after(q.parentNode, inline);

View File

@ -831,7 +831,7 @@ Keybinds =
Updater.update() Updater.update()
when Conf.unreadCountTo0 when Conf.unreadCountTo0
Unread.replies = [] Unread.replies = []
Unread.update() Unread.update true
# Images # Images
when Conf.expandImage when Conf.expandImage
Keybinds.img thread Keybinds.img thread
@ -2606,7 +2606,7 @@ QuoteInline =
inline = QuoteInline.table id, el.innerHTML inline = QuoteInline.table id, el.innerHTML
if (i = Unread.replies.indexOf el.parentNode.parentNode.parentNode) isnt -1 if (i = Unread.replies.indexOf el.parentNode.parentNode.parentNode) isnt -1
Unread.replies.splice i, 1 Unread.replies.splice i, 1
Unread.update() Unread.update true
if /\bbacklink\b/.test q.className if /\bbacklink\b/.test q.className
$.after q.parentNode, inline $.after q.parentNode, inline
if Conf['Forward Hiding'] if Conf['Forward Hiding']