From: dongsheng Date: Wed, 25 Jun 2008 02:18:55 +0000 (+0000) Subject: "MDL-8642, see tracker, merged from MOODLE_19_STABLE" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f836189a701ec4635dab66007cabb28cb151f586;p=moodle.git "MDL-8642, see tracker, merged from MOODLE_19_STABLE" --- 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); + } } //]]>