Hide all removed notifications.
[Sone.git] / 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);
        });