From e04853ce5fc1041afaca55031a78c6dd5ce5ba36 Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 15 May 2020 20:09:31 +0200 Subject: [PATCH] mustard: notifs: Aggiunto bottone per leggere le notifiche. * web/mustard/notifs.php: Aggiunto bottone che chiama la funzione JS markread per marcare come letta la notifica. --- web/mustard/notifs.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/web/mustard/notifs.php b/web/mustard/notifs.php index 043599d..8e2cb94 100644 --- a/web/mustard/notifs.php +++ b/web/mustard/notifs.php @@ -304,6 +304,8 @@ if ($account['Level'] != 'guest') { + +
@@ -314,8 +316,16 @@ if ($account['Level'] != 'guest') { 2 => "sev-warning", 3 => "sev-error" ); + $seen_class = array( + 0 => "unseen", + 1 => "seen" + ); foreach ($notifs['notifs'] as $n) { - echo("
" . $n["Notification"] . "
\n"); + echo("
" . + $n["Notification"] . + "" . + "
\n"); } } ?>