Don’t poll for status on the login page.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 31 Dec 2010 09:43:27 +0000 (10:43 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 31 Dec 2010 09:43:27 +0000 (10:43 +0100)
src/main/resources/static/javascript/sone.js

index 8a3780f..fe2e12d 100644 (file)
@@ -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() {