Start polling notifications when loading the page.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 15 Nov 2010 05:34:52 +0000 (06:34 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 15 Nov 2010 05:34:52 +0000 (06:34 +0100)
src/main/resources/templates/include/head.html

index ed83b2f..41c7971 100644 (file)
                });
        </script>
 
+       <script language="javascript">
+               /* activate notification polling. */
+               $(document).ready(function() {
+                       setTimeout(getNotifications, 5000);
+               });
+       </script>
+
        <div id="main">
 
                <%if !webInterface.core.identityManager.connected>