From 91f551dc6a31642660bb5a387f6d812d26329b2a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 15 Nov 2010 09:08:27 +0100 Subject: [PATCH] Only get new notifications every 30 seconds in case of an error. --- src/main/resources/static/javascript/sone.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index a9a8c8f..e4992be 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -473,8 +473,10 @@ function getNotifications() { $.each(data.removedNotifications, function(index, value) { $("#sone #notification-area .notification#" + value.id).slideUp(); }); + setTimeout(getNotifications, 5000); + } else { + setTimeout(getNotifications, 30000); } - setTimeout(getNotifications, 5000); }); } -- 2.7.4