]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-8642, setting of auto scrolling, merged from MOODLE_19_STABLE"
authordongsheng <dongsheng>
Wed, 18 Jun 2008 04:06:11 +0000 (04:06 +0000)
committerdongsheng <dongsheng>
Wed, 18 Jun 2008 04:06:11 +0000 (04:06 +0000)
lang/en_utf8/chat.php
mod/chat/gui_header_js/chatinput.php
mod/chat/gui_header_js/jsupdate.php

index 34e59df5c87f818632aba870eb1ead1a7fc5dadf..cb1ac679d165e76a71c1fa79bf9f95533cd15e83 100644 (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';
 
 ?>
index d859c5dbcccbaa878ad087da9b79a8e9520d95d7..18b35fcecc9e9cd7297640624f27fc676d3c07fc 100644 (file)
 
 ?>
     <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">
index 5d7ac74e85cafcfa4ff77fd370c077fc067ec22f..cd3cc71a53eee21b5eb79c104299bf882df9c8ad 100644 (file)
             }
         }
         ?>
-        if(parent.msg)
+        if(parent.msg && parent.input.document.getElementById('auto').checked){
             parent.msg.scroll(1,5000000);
+        }
         //]]>
         </script>
     </head>