"MDL-8642, see tracker, merged from MOODLE_18_STABLE"

This commit is contained in:
dongsheng
2008-06-25 02:16:59 +00:00
parent 071e1ef4b0
commit 062b6df0ee
2 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -53,7 +53,7 @@
onsubmit="return empty_field_and_submit()" style="margin:0">
<input type="text" id="input_chat_message" name="chat_message" size="50" value="" />
<?php helpbutton('chatting', get_string('helpchatting', 'chat'), 'chat', true, false); ?><br />
<input type="checkbox" id="auto" size="50" value="" checked /><?php echo get_string('autoscroll', 'chat');?>
<input type="checkbox" id="auto" size="50" value="" checked='true' /><?php echo get_string('autoscroll', 'chat');?>
</form>
<form action="insert.php" method="post" target="empty" id="sendForm">
+5 -2
View File
@@ -141,8 +141,11 @@
}
}
?>
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);
}
}
//]]>
</script>