summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2012-08-14 01:24:03 +0200
committerBernhard Posselt <nukeawhale@gmail.com>2012-08-14 01:24:03 +0200
commitc072cc7ff8aa06a84b5f17f2a8f648649b4ae397 (patch)
treec92b9fce7b4412377afdcfc9298d613457730699 /js
parent55c3bc6f19cbd4f03c0b41eb40ff5422d2a1f778 (diff)
fixed a bug that still displayed the unread count when all items are read
Diffstat (limited to 'js')
-rw-r--r--js/news.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/news.js b/js/news.js
index 22edbe348..04801aa66 100644
--- a/js/news.js
+++ b/js/news.js
@@ -349,9 +349,10 @@ News={
if(!_$currentItem.hasClass('read') && read){
_$currentItem.addClass('read');
- if (unreadCount === 0) {
+ if (unreadCount <= 1) {
counterplace.removeClass('nonzero').addClass('zero');
title.removeClass('nonzero').addClass('zero');
+ counterplace.html('');
} else {
counterplace.html(unreadCount-1);
}