Skip to content

Commit

Permalink
"MDL-8642, see tracker, merged from MOODLE_18_STABLE"
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsheng committed Jun 25, 2008
1 parent 071e1ef commit 062b6df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod/chat/gui_header_js/chatinput.php
Expand Up @@ -53,7 +53,7 @@ function enableForm() {
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">
Expand Down
7 changes: 5 additions & 2 deletions mod/chat/gui_header_js/jsupdate.php
Expand Up @@ -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>
Expand Down

0 comments on commit 062b6df

Please sign in to comment.