From 7c74e4e76059ce62f7d4ed77c78420d720ed6b42 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 31 Dec 2010 10:43:27 +0100 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20poll=20for=20status=20on=20the?= =?utf8?q?=20login=20page.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- 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 8a3780f..fe2e12d 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -954,7 +954,9 @@ $(document).ready(function() { }); /* activate status polling. */ - setTimeout(getStatus, 5000); + if (getPageId() != "login") { + setTimeout(getStatus, 5000); + } /* reset activity counter when the page has focus. */ $(window).focus(function() { -- 2.7.4