Hide all removed notifications.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 15 Nov 2010 05:49:43 +0000 (06:49 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 15 Nov 2010 05:49:43 +0000 (06:49 +0100)
src/main/resources/static/javascript/sone.js

index 5c3415b..20386f7 100644 (file)
@@ -443,6 +443,9 @@ function getNotifications() {
                                }
                                notification.slideDown();
                        });
+                       $.each(data.removedNotifications, function(index, value) {
+                               $("#sone #notification-area .notification#" + value.id).slideUp();
+                       });
                }
                setTimeout(getNotifications, 5000);
        });