From d0ab70772ef0709c58cc493c0c7864cd35a906ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 7 Apr 2011 11:51:57 +0200 Subject: [PATCH] Reset blinking tab icon when no notifications are visible. --- src/main/resources/static/javascript/sone.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index f167d69..1341cc0 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -1030,6 +1030,10 @@ function getStatus() { $.each(data.newReplies, function(index, value) { loadNewReply(value.id, value.sone, value.post, value.postSone); }); + /* remove activity when no notifications are visible. */ + if ($("#sone #notification-area .notification").length == 0) { + resetActivity(); + } /* do it again in 5 seconds. */ setTimeout(getStatus, 5000); } else { -- 2.7.4