Fix: Hide notification count badge if notification count is 0

This commit is contained in:
buddh4 2017-02-21 21:23:01 +01:00
parent 41757514fe
commit d0c38973e6
2 changed files with 5 additions and 1 deletions

View File

@ -47,7 +47,7 @@ HumHub Change Log
- Fix: Activity stream rendering issue on page unload.
- Enh: Optimized stream entry fade animation.
- Enh: Added $maxAttachedFiles to content module to restrict the uploaded file count of comments and posts
- Fix: Hide notification count badge if notification count is 0
1.2.0-beta.1 (February 08, 2017)

View File

@ -102,10 +102,14 @@ humhub.module('notification', function (module, require, $) {
NotificationDropDown.prototype.updateCount = function ($count) {
if (this.$.data('notification-count') === $count) {
if(!$count) {
$('#badge-notifications').hide();
}
return;
}
$('#badge-notifications').hide();
if (!$count) {
updateTitle(false);
$('#badge-notifications').html('0');