Implement new indicator for topmenu items in fw such as displaying unread messages for notifications

This commit is contained in:
Hadi Nategh
2019-12-02 14:09:45 +01:00
parent 9e2b72f868
commit 9233c93e4f
7 changed files with 111 additions and 3 deletions

View File

@@ -802,13 +802,12 @@
if (counter > 0)
{
$topmenu_info_notifications.addClass('egwpopup_notify');
if (jQuery('#egw_fw_topmenu:visible').length == 0) $topmenu_info_notifications.append($popup_note);
$popup_note.text(egw.lang('You have %1 unread notifications', counter));
framework.topmenu_info_notify('notifications', true, counter,egw.lang('You have %1 unread notifications', counter));
setTimeout(function (){$popup_note.remove();}, 4000);
}
else
{
$topmenu_info_notifications.removeClass('egwpopup_notify');
framework.topmenu_info_notify('notifications', false);
}
};