From 4c730456bfab5bed9273182231b6d88cb389f20c Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 17 Apr 2020 13:38:27 +0200 Subject: [PATCH] Add onSeenAction for notifications --- notifications/js/notificationajaxpopup.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/notifications/js/notificationajaxpopup.js b/notifications/js/notificationajaxpopup.js index aeec94ecf2..91394e424b 100644 --- a/notifications/js/notificationajaxpopup.js +++ b/notifications/js/notificationajaxpopup.js @@ -519,6 +519,11 @@ var request = egw.json("notifications.notifications_ajax.update_status", [ids, "SEEN"]); request.sendRequest(true); this.update_message_status(id, "SEEN"); + if (notifymessages[id]['extra_data']['onSeenAction']) + { + var func = new Function(notifymessages[id]['extra_data']['onSeenAction']); + func.apply(this,[notifymessages[id]['extra_data']]); + } } };