* Iconbar embedded wholist javascript moved to 'trailing javascript' section of the...
authorArt Cancro <ajc@citadel.org>
Tue, 6 Jan 2009 19:42:16 +0000 (19:42 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 6 Jan 2009 19:42:16 +0000 (19:42 +0000)
webcit/iconbar.c

index 0cc9ceddc3f446e35f21a5fe4d680cc5b443a2c4..ee856489066b01c6bf3808378a399bcb9849d0ba 100644 (file)
@@ -367,11 +367,10 @@ void do_iconbar(void) {
        wprintf("</ul>\n");
 
        if (IconbarIsEnabled("ib_users", 0)) {
-               wprintf(
-                       "<script type=\"text/javascript\"> "
-                       " new Ajax.PeriodicalUpdater('wholist', 'do_template?template=wholist_section', { method: 'get', frequency: 30 } );"
-                       "</script> \n"
-                       );
+               StrBufAppendPrintf(WC->trailing_javascript,
+                       "new Ajax.PeriodicalUpdater('wholist', 'do_template?template=wholist_section', "
+                       "{ method: 'get', frequency: 30 } );    \n"
+               );
        }
 }