From 3ecb399454394408c5addc49e11ff3930b5a8430 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 26 Apr 2021 14:32:24 +0200 Subject: [PATCH] Fix notifications set in high priority does not show counter after reload --- notifications/js/notificationajaxpopup.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/notifications/js/notificationajaxpopup.js b/notifications/js/notificationajaxpopup.js index 89498fcf49..2addf7406e 100644 --- a/notifications/js/notificationajaxpopup.js +++ b/notifications/js/notificationajaxpopup.js @@ -764,7 +764,14 @@ alert(egw.lang('EGroupware has notifications for you')); egw.json("notifications.notifications_ajax.update_status", [hasUnseen, 'DISPLAYED']).sendRequest(); } - if (egwpopup.style.display != 'none') this.display(); + if (egwpopup.style.display != 'none') + { + this.display(); + } + else + { + this.counterUpdate(); + } break; case 'medium': if (egwpopup.style.display != 'none' && Object.keys(old_notifymessages).length != Object.keys(notifymessages).length)