Add onSeenAction for notifications

This commit is contained in:
Hadi Nategh 2020-04-17 13:38:27 +02:00
parent 397fc8a620
commit 4c730456bf

View File

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