From: Art Cancro Date: Mon, 15 Mar 2004 03:45:01 +0000 (+0000) Subject: * Open chat in a separate window. X-Git-Tag: v7.86~5536 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=6e41148be6aa5a82c7a0d44558ef2ca3b806d69a;p=citadel.git * Open chat in a separate window. * Use regular frames instead of IFRAMEs. --- diff --git a/webcit/iconbar.c b/webcit/iconbar.c index 717fd5c2f..c3adb4ed2 100644 --- a/webcit/iconbar.c +++ b/webcit/iconbar.c @@ -199,8 +199,11 @@ void do_iconbar(void) { if (ib_chat) { wprintf("" - "" + "" ); if (ib_displayas != IB_TEXTONLY) { wprintf("
\n" ); - wprintf("
" + wprintf("" "" "Chat with other users in " ); diff --git a/webcit/paging.c b/webcit/paging.c index 87b877076..cbfdd7acc 100644 --- a/webcit/paging.c +++ b/webcit/paging.c @@ -135,37 +135,11 @@ void do_chat(void) WC->chat_sock = (-1); } - /* Ok, we're good. Here we go. */ - output_headers(3); - - wprintf("
" - "" - "" - ); - escputs(WC->wc_roomname); - wprintf(": real-time chat\n" - "
\n" - - "\n" - - "" - - "
\n" - - "\n" - ); - wDumpContent(1); + /* WebCit Chat works by having transmit, receive, and refresh + * frames. Load the frameset. + */ + do_template("chatframeset"); + return; } @@ -344,7 +318,7 @@ void chat_recv(void) { if (end_chat_now) { close(WC->chat_sock); WC->chat_sock = (-1); - wprintf("\n"); + wprintf("\n"); } if (strlen(output_data) > 0) {