From f836189a701ec4635dab66007cabb28cb151f586 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 25 Jun 2008 02:18:55 +0000 Subject: [PATCH] "MDL-8642, see tracker, merged from MOODLE_19_STABLE" --- mod/chat/gui_header_js/chatinput.php | 4 ++-- mod/chat/gui_header_js/jsupdate.php | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/mod/chat/gui_header_js/chatinput.php b/mod/chat/gui_header_js/chatinput.php index 18b35fcecc..61b72b2c8f 100644 --- a/mod/chat/gui_header_js/chatinput.php +++ b/mod/chat/gui_header_js/chatinput.php @@ -1,6 +1,6 @@
- +
diff --git a/mod/chat/gui_header_js/jsupdate.php b/mod/chat/gui_header_js/jsupdate.php index cd3cc71a53..87fed99cce 100644 --- a/mod/chat/gui_header_js/jsupdate.php +++ b/mod/chat/gui_header_js/jsupdate.php @@ -1,6 +1,6 @@ - if(parent.msg && parent.input.document.getElementById('auto').checked){ - parent.msg.scroll(1,5000000); + if(parent.input){ + var autoscroll = parent.input.document.getElementById('auto'); + if(parent.msg && autoscroll && autoscroll.checked){ + parent.msg.scroll(1,5000000); + } } //]]> -- 2.39.5