mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
Add onSeenAction for notifications
This commit is contained in:
parent
397fc8a620
commit
4c730456bf
@ -519,6 +519,11 @@
|
|||||||
var request = egw.json("notifications.notifications_ajax.update_status", [ids, "SEEN"]);
|
var request = egw.json("notifications.notifications_ajax.update_status", [ids, "SEEN"]);
|
||||||
request.sendRequest(true);
|
request.sendRequest(true);
|
||||||
this.update_message_status(id, "SEEN");
|
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']]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user