From 07b76bad6af1b31bfaf40728fce791f611e0d497 Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 12 Jul 2006 02:29:12 +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. Merged from MOODLE_16_STABLE 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 2ed66eafff..f3502e2dc4 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 7fd33fb838..77e127c8a7 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 01a2350d71..fd771394a3 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 ***/ -- 2.39.5