]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.c
Changes to instant messenger to work around IE bugs
[citadel.git] / webcit / webcit.c
index 92eed0d9395f666797211bdb70ff84e673ecf71a..81f3281a74da1a9e400800bf80a9d12e156d61a3 100644 (file)
@@ -390,8 +390,6 @@ void output_headers(        int do_httpheaders,     /* 1 = output HTTP headers
        /* ICONBAR */
        if (do_htmlhead) {
 
-               /* check for instant messages (these display in a new window) */
-               page_popup();
 
                /* check for ImportantMessages (these display in a div overlaying the main screen) */
                if (strlen(WC->ImportantMessage) > 0) {
@@ -404,10 +402,16 @@ void output_headers(      int do_httpheaders,     /* 1 = output HTTP headers
                                "</script>\n");
                        safestrncpy(WC->ImportantMessage, "", sizeof WC->ImportantMessage);
                }
+
                if ( (WC->logged_in) && (!unset_cookies) ) {
                        wprintf("<div id=\"iconbar\">");
                        do_selected_iconbar();
+
+                       /* check for instant messages (these display in a new window) */
+                       page_popup();
+                       wprintf("</div>");
                }
+
                if (do_room_banner == 1) {
                        wprintf("<div id=\"banner\">\n");
                        embed_room_banner(NULL, navbar_default);