diff --git a/templates/notification/notification_items.html b/templates/notification/notification_items.html index 9131ca228..1a4cc8ea8 100644 --- a/templates/notification/notification_items.html +++ b/templates/notification/notification_items.html @@ -87,7 +87,7 @@ {% endcomment %}
@@ -155,4 +155,13 @@ }); }); }); + + function updateNotificationCount() { + var unreadCount = $(".oh-navbar__notification-item .oh-navbar__notification-dot--unread").length; + + var $badge = $(".live_notify_badge"); + if ($badge.length) { + $badge.text(unreadCount); + } + }