"MDL-8642, setting of auto scrolling, merged from MOODLE_19_STABLE"

This commit is contained in:
dongsheng
2008-06-18 04:06:11 +00:00
parent 5537bb044b
commit 4ee00a30cf
3 changed files with 12 additions and 6 deletions
+6 -2
View File
@@ -1,7 +1,8 @@
<?PHP // $Id$
<?PHP // $Id$
// chat.php - created with Moodle 1.7 beta + (2006101003)
$string['ajax'] = 'Version using Ajax';
$string['autoscroll'] = 'Auto Scroll';
$string['beep'] = 'beep';
$string['cantlogin'] = 'Could not log in to chat room!!';
$string['cantinsert'] = 'Could not insert a chat message!';
@@ -69,10 +70,13 @@ $string['servermax'] = 'Max users';
$string['serverport'] = 'Server port';
$string['savemessages'] = 'Save past sessions';
$string['seesession'] = 'See this session';
$string['send'] = 'Send';
$string['sending'] = 'Sending';
$string['sessions'] = 'Chat sessions';
$string['strftimemessage'] = '%%H:%%M';
$string['studentseereports'] = 'Everyone can view past sessions';
$string['updatemethod'] = 'Update method';
$string['updaterate'] = 'Update Rate: ';
$string['viewreport'] = 'View past chat sessions';
?>
+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
@@ -143,8 +143,9 @@
}
}
?>
if(parent.msg)
if(parent.msg && parent.input.document.getElementById('auto').checked){
parent.msg.scroll(1,5000000);
}
//]]>
</script>
</head>