Only poll for status if a page ID is actually defined.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 31 Dec 2010 10:15:29 +0000 (11:15 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 31 Dec 2010 10:15:29 +0000 (11:15 +0100)
src/main/resources/static/javascript/sone.js

index fe2e12d..803774a 100644 (file)
@@ -954,7 +954,7 @@ $(document).ready(function() {
        });
 
        /* activate status polling. */
-       if (getPageId() != "login") {
+       if ((getPageId() != undefined) && (getPageId() != "login")) {
                setTimeout(getStatus, 5000);
        }