]> code.citadel.org Git - citadel.git/commitdiff
* Moved the call to hide_imsg_popup() to the trailing_javascript block, but I think...
authorArt Cancro <ajc@citadel.org>
Sat, 7 Feb 2009 05:04:11 +0000 (05:04 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 7 Feb 2009 05:04:11 +0000 (05:04 +0000)
webcit/webcit.c

index 3904d043199465dc1ed46c2fee4b220423972526..e8a295814769a59395fab4f82118a3594460ef48 100644 (file)
@@ -168,9 +168,10 @@ void output_headers(       int do_httpheaders,     /* 1 = output HTTP headers
                        escputs(WC->ImportantMessage);
                        wprintf("</span><br />\n"
                                "</div>\n"
-                               "<script type=\"text/javascript\">\n"
-                               "        setTimeout('hide_imsg_popup()', 5000); \n"
-                               "</script>\n");
+                       );
+                       StrBufAppendPrintf(WC->trailing_javascript,
+                               "setTimeout('hide_imsg_popup()', 5000); \n"
+                       );
                        WC->ImportantMessage[0] = 0;
                }