forked from extern/egroupware
Fix delete all notifications action does not reset the counter
This commit is contained in:
parent
fdb47ab168
commit
f5af05ffd2
@ -382,7 +382,7 @@
|
|||||||
notifications.prototype.delete_all = function () {
|
notifications.prototype.delete_all = function () {
|
||||||
if (!notifymessages || Object.entries(notifymessages).length == 0) return false;
|
if (!notifymessages || Object.entries(notifymessages).length == 0) return false;
|
||||||
egw.json("notifications.notifications_ajax.delete_message", [Object.keys(notifymessages)]).sendRequest(true);
|
egw.json("notifications.notifications_ajax.delete_message", [Object.keys(notifymessages)]).sendRequest(true);
|
||||||
delete(notifymessages);
|
notifymessages = {};
|
||||||
jQuery("#egwpopup_list").empty();
|
jQuery("#egwpopup_list").empty();
|
||||||
this.counterUpdate();
|
this.counterUpdate();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user