Update title when notifications count has been updated
This commit is contained in:
@@ -321,6 +321,10 @@ html(lang="en")
|
||||
{% if current_user.is_authenticated %}
|
||||
getNotificationsLoop(); // Check for new notifications in the background
|
||||
|
||||
$('body').on('pillar:notifications-total-updated', function(e, notifications_total) {
|
||||
updateTitle(notifications_total, page_title);
|
||||
});
|
||||
|
||||
// Resize #notifications and change overflow for scrollbars
|
||||
$(window).on("resize", function() { notificationsResize(); });
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user