From: martinlanghoff Date: Wed, 12 Jul 2006 02:29:12 +0000 (+0000) Subject: chat: Prevent user from submitting a 2nd message before his 1st is received. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=07b76bad6af1b31bfaf40728fce791f611e0d497;p=moodle.git 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 --- 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 ***/