"MDL-8642, setting of auto scrolling"
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?PHP // $Id$
|
||||
// chat.php - created with Moodle 1.7 beta + (2006101003)
|
||||
|
||||
|
||||
$string['autoscroll'] = 'Auto Scroll';
|
||||
$string['beep'] = 'beep';
|
||||
$string['chat:chat'] = 'Talk in a chat';
|
||||
$string['chat:deletelog'] = 'Delete chat logs';
|
||||
|
||||
@@ -50,9 +50,10 @@
|
||||
|
||||
?>
|
||||
<form action="../empty.php" method="post" target="empty" id="inputForm"
|
||||
onsubmit="return empty_field_and_submit()">
|
||||
>><input type="text" id="input_chat_message" name="chat_message" size="60" value="" />
|
||||
<?php helpbutton('chatting', get_string('helpchatting', 'chat'), 'chat', true, false); ?>
|
||||
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');?>
|
||||
</form>
|
||||
|
||||
<form action="insert.php" method="post" target="empty" id="sendForm">
|
||||
|
||||
@@ -141,8 +141,9 @@
|
||||
}
|
||||
}
|
||||
?>
|
||||
if(parent.msg)
|
||||
if(parent.msg && parent.input.document.getElementById('auto').checked){
|
||||
parent.msg.scroll(1,5000000);
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user