"MDL-8642, setting of auto scrolling"

This commit is contained in:
dongsheng
2008-06-18 03:45:26 +00:00
parent b678200478
commit 71c3e668a5
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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';
+4 -3
View File
@@ -50,9 +50,10 @@
?>
<form action="../empty.php" method="post" target="empty" id="inputForm"
onsubmit="return empty_field_and_submit()">
&gt;&gt;<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">
+2 -1
View File
@@ -141,8 +141,9 @@
}
}
?>
if(parent.msg)
if(parent.msg && parent.input.document.getElementById('auto').checked){
parent.msg.scroll(1,5000000);
}
//]]>
</script>
</head>