From 4ee00a30cf77650193e8b37b1649397e9338913c Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 18 Jun 2008 04:06:11 +0000 Subject: [PATCH] "MDL-8642, setting of auto scrolling, merged from MOODLE_19_STABLE" --- lang/en_utf8/chat.php | 8 ++++++-- mod/chat/gui_header_js/chatinput.php | 7 ++++--- mod/chat/gui_header_js/jsupdate.php | 3 ++- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/lang/en_utf8/chat.php b/lang/en_utf8/chat.php index 34e59df5c8..cb1ac679d1 100644 --- a/lang/en_utf8/chat.php +++ b/lang/en_utf8/chat.php @@ -1,7 +1,8 @@ - diff --git a/mod/chat/gui_header_js/chatinput.php b/mod/chat/gui_header_js/chatinput.php index d859c5dbcc..18b35fcecc 100644 --- a/mod/chat/gui_header_js/chatinput.php +++ b/mod/chat/gui_header_js/chatinput.php @@ -50,9 +50,10 @@ ?>
- >> - + onsubmit="return empty_field_and_submit()" style="margin:0"> + +
+
diff --git a/mod/chat/gui_header_js/jsupdate.php b/mod/chat/gui_header_js/jsupdate.php index 5d7ac74e85..cd3cc71a53 100644 --- a/mod/chat/gui_header_js/jsupdate.php +++ b/mod/chat/gui_header_js/jsupdate.php @@ -143,8 +143,9 @@ } } ?> - if(parent.msg) + if(parent.msg && parent.input.document.getElementById('auto').checked){ parent.msg.scroll(1,5000000); + } //]]> -- 2.39.5