From: David ‘Bombe’ Roden Date: Fri, 31 Dec 2010 09:43:27 +0000 (+0100) Subject: Don’t poll for status on the login page. X-Git-Tag: beta-freefall-0.6.2-1~163 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7c74e4e76059ce62f7d4ed77c78420d720ed6b42;hp=c5f440284b78807e128dd24661c6553f19e8fa35;p=Sone.git Don’t poll for status on the login page. --- 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() {