From f5af05ffd2f9e9b55247de6dbbb1c51fe1a040f6 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 26 Oct 2017 10:25:57 +0200 Subject: [PATCH] Fix delete all notifications action does not reset the counter --- notifications/js/notificationajaxpopup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications/js/notificationajaxpopup.js b/notifications/js/notificationajaxpopup.js index c0084127a9..1275dfd200 100644 --- a/notifications/js/notificationajaxpopup.js +++ b/notifications/js/notificationajaxpopup.js @@ -382,7 +382,7 @@ notifications.prototype.delete_all = function () { if (!notifymessages || Object.entries(notifymessages).length == 0) return false; egw.json("notifications.notifications_ajax.delete_message", [Object.keys(notifymessages)]).sendRequest(true); - delete(notifymessages); + notifymessages = {}; jQuery("#egwpopup_list").empty(); this.counterUpdate(); };