Update title when notifications count has been updated

This commit is contained in:
2017-10-02 19:55:08 +02:00
parent 14d20edbb7
commit c25aae82b5

View File

@@ -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 %}