Only poll for status if a page ID is actually defined.
[Sone.git] / src / main / resources / static / javascript / sone.js
index 8a3780f..803774a 100644 (file)
@@ -954,7 +954,9 @@ $(document).ready(function() {
        });
 
        /* activate status polling. */
-       setTimeout(getStatus, 5000);
+       if ((getPageId() != undefined) && (getPageId() != "login")) {
+               setTimeout(getStatus, 5000);
+       }
 
        /* reset activity counter when the page has focus. */
        $(window).focus(function() {