Fix stray unread code.

This commit is contained in:
Nicolas Stepien 2013-02-19 19:52:08 +01:00
parent aa16428d78
commit 6cd4d22215
2 changed files with 5 additions and 7 deletions

View File

@ -4598,7 +4598,7 @@
var count; var count;
count = Unread.posts.length; count = Unread.posts.length;
if (Conf['Unread Count']) { if (Conf['Unread Count']) {
d.title = "(" + Unread.posts.length + ") " + Unread.title; d.title = g.DEAD ? "(" + Unread.posts.length + ") /" + g.BOARD + "/ - 404" : "(" + Unread.posts.length + ") " + Unread.title;
} }
if (!Conf['Unread Tab Icon']) { if (!Conf['Unread Tab Icon']) {
return; return;

View File

@ -2928,7 +2928,10 @@ Unread =
count = Unread.posts.length count = Unread.posts.length
if Conf['Unread Count'] if Conf['Unread Count']
d.title = "(#{Unread.posts.length}) #{Unread.title}" d.title = if g.DEAD
"(#{Unread.posts.length}) /#{g.BOARD}/ - 404"
else
"(#{Unread.posts.length}) #{Unread.title}"
return unless Conf['Unread Tab Icon'] return unless Conf['Unread Tab Icon']
@ -3138,11 +3141,6 @@ ThreadUpdater =
$.event 'ThreadUpdate', $.event 'ThreadUpdate',
404: true 404: true
thread: ThreadUpdater.thread thread: ThreadUpdater.thread
# if Conf['Unread Count']
# Unread.title = Unread.title.match(/^.+-/)[0] + ' 404'
# else
# d.title = d.title.match(/^.+-/)[0] + ' 404'
# Unread.update true
else else
ThreadUpdater.outdateCount++ ThreadUpdater.outdateCount++
ThreadUpdater.set 'timer', ThreadUpdater.getInterval() ThreadUpdater.set 'timer', ThreadUpdater.getInterval()