From: David ‘Bombe’ Roden Date: Mon, 15 Nov 2010 05:49:43 +0000 (+0100) Subject: Hide all removed notifications. X-Git-Tag: 0.3-RC1~44 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5867507cdc8c401b17d2a4118197887de9d53c20;p=Sone.git Hide all removed notifications. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 5c3415b..20386f7 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -443,6 +443,9 @@ function getNotifications() { } notification.slideDown(); }); + $.each(data.removedNotifications, function(index, value) { + $("#sone #notification-area .notification#" + value.id).slideUp(); + }); } setTimeout(getNotifications, 5000); });