From 7f3d5c3989000b087b68fa3a5ada87367c3a18ad Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 19 May 2020 20:00:13 +0200 Subject: [PATCH] mustard: notifs.js: Esclude le notifiche filtrate da quelle vive. --- web/mustard/js/notifs.js.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/mustard/js/notifs.js.php b/web/mustard/js/notifs.js.php index 976acf6..10ff291 100644 --- a/web/mustard/js/notifs.js.php +++ b/web/mustard/js/notifs.js.php @@ -59,7 +59,10 @@ function markdeleted(notif) { function getAliveNotifs(){ let notifs = Array.from(document.querySelectorAll("div.notif")); - return notifs.filter(n => !(Array.from(n.classList).includes("deleted"))) + return notifs.filter(n => { + let classes = Array.from(n.classList); + return !(classes.includes("deleted") || classes.includes("filtered")); + }) } function getAliveCheckboxes() {