diff options
-rw-r--r-- | js/news.js | 4 | ||||
-rw-r--r-- | templates/part.listfeed.php | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/js/news.js b/js/news.js index c583683f6..e485e4a4b 100644 --- a/js/news.js +++ b/js/news.js @@ -181,11 +181,13 @@ News={ currentitem.addClass('title_read'); // decrement counter - var counterplace = $('.feed[data-id="'+feedid+'"]').find('.unreaditemcounter'); + var counterplace = $('li.feed[data-id="'+feedid+'"]').find('.unreaditemcounter'); + var title = $('li.feed[data-id="'+feedid+'"] > a'); var oldcount = counterplace.html(); counterplace.empty(); if (oldcount <= 1) { counterplace.removeClass('nonzero').addClass('zero'); + title.removeClass('nonzero').addClass('zero'); } else { counterplace.append(--oldcount); diff --git a/templates/part.listfeed.php b/templates/part.listfeed.php index 6e988f4df..530ab3ba8 100644 --- a/templates/part.listfeed.php +++ b/templates/part.listfeed.php @@ -10,7 +10,8 @@ if ($favicon == null) { } echo '<li class="feed" data-id="' . $child->getId() . '">'; -echo '<a href="#" style="background: url(' . $favicon . ') left center no-repeat; background-size:16px 16px;">' . $child->getTitle() .'</a>'; +echo '<a href="#" style="background: url(' . $favicon . ') left center no-repeat; background-size:16px 16px;" class="' . + (($unreadItems > 0) ? 'nonzero' : 'zero') . '">' . $child->getTitle() .'</a>'; if ($unreadItems > 0) { echo '<span class="unreaditemcounter nonzero">' . $unreadItems . '</span>'; } |