From 551d2b59bf60a65fa9ad696ec161d1aa9027d5dc Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 12 Jul 2006 02:28:37 +0000 Subject: [PATCH] chat: Prevent user from submitting a 2nd message before his 1st is received. Some users reported that mod/chat was silently dropping some messages. The user's browser may not be able to keep up with the rate at which he submits chat messages. This update keeps things sane. Author: Donal McMullan --- mod/chat/gui_header_js/chatinput.php | 20 ++++++++++++++++---- mod/chat/gui_header_js/insert.php | 2 +- theme/standard/styles_color.css | 4 ++++ 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/mod/chat/gui_header_js/chatinput.php b/mod/chat/gui_header_js/chatinput.php index 2ed66eafffa..f3502e2dc4c 100644 --- a/mod/chat/gui_header_js/chatinput.php +++ b/mod/chat/gui_header_js/chatinput.php @@ -29,13 +29,25 @@ ?>
- >> + >>
diff --git a/mod/chat/gui_header_js/insert.php b/mod/chat/gui_header_js/insert.php index 7fd33fb838f..77e127c8a7b 100644 --- a/mod/chat/gui_header_js/insert.php +++ b/mod/chat/gui_header_js/insert.php @@ -58,7 +58,7 @@ if ($chatuser->version == 'header_js') { /// force msg referesh ASAP - echo ''; + echo ''; } redirect('../empty.php'); diff --git a/theme/standard/styles_color.css b/theme/standard/styles_color.css index 01a2350d71f..fd771394a32 100644 --- a/theme/standard/styles_color.css +++ b/theme/standard/styles_color.css @@ -709,6 +709,10 @@ table.message_search_results td { color:#888 } +#mod-chat-gui_header_js-chatinput .wait { + background: #dddddd; +} + /*** *** Modules: Choice ***/