mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix: Hide notification count badge if notification count is 0
This commit is contained in:
parent
41757514fe
commit
d0c38973e6
@ -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)
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user