Fix delete all notifications action does not reset the counter

This commit is contained in:
Hadi Nategh 2017-10-26 10:25:57 +02:00
parent fdb47ab168
commit f5af05ffd2

View File

@ -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();
};