diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-14 01:24:03 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2012-08-14 01:24:03 +0200 |
commit | c072cc7ff8aa06a84b5f17f2a8f648649b4ae397 (patch) | |
tree | c92b9fce7b4412377afdcfc9298d613457730699 | |
parent | 55c3bc6f19cbd4f03c0b41eb40ff5422d2a1f778 (diff) |
fixed a bug that still displayed the unread count when all items are read
-rw-r--r-- | js/news.js | 3 |
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); } |