]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-14465, add a setfocus() function, see tracker, thanks, Ralf"
authordongsheng <dongsheng>
Wed, 30 Apr 2008 03:42:24 +0000 (03:42 +0000)
committerdongsheng <dongsheng>
Wed, 30 Apr 2008 03:42:24 +0000 (03:42 +0000)
mod/chat/gui_sockets/chatinput.php

index 3d32f4123c33dfbbb57517744d70458d97cb873d..34f4da16859b9e5c84cfc07e52c67aac093d4ac6 100644 (file)
@@ -49,6 +49,9 @@ function reloadusers() {
         window.setTimeout("reloadusers();", <?php echo $CFG->chat_refresh_userlist; ?> * 1000);
     }
 }
+function setfocus(){
+    document.getElementsByName("chat_message")[0].focus();
+}
 // -->
 </script>
     <?php
@@ -73,4 +76,4 @@ function reloadusers() {
     </form>
 <?php
     print_footer('empty');
-?>
\ No newline at end of file
+?>