mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-19 07:53:14 +00:00
mark all notification as read
This commit is contained in:
@@ -209,6 +209,20 @@ const notifyLayout = (services) => {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$notificationDialog.on('click', '.mark-all-read', function(event) {
|
||||
event.preventDefault();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/user/notifications/read-all/',
|
||||
success: function (data) {
|
||||
if (data.success == true) {
|
||||
print_notifications(0);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
const markNotificationRead = (notification_id, $notification) => {
|
||||
|
Reference in New Issue
Block a user