From 083acd24dbe7c9bd0e6f61d74c3d13d6a0fc7be3 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 30 Apr 2008 03:42:24 +0000 Subject: [PATCH] "MDL-14465, add a setfocus() function, see tracker, thanks, Ralf" --- mod/chat/gui_sockets/chatinput.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mod/chat/gui_sockets/chatinput.php b/mod/chat/gui_sockets/chatinput.php index 3d32f4123c..34f4da1685 100644 --- a/mod/chat/gui_sockets/chatinput.php +++ b/mod/chat/gui_sockets/chatinput.php @@ -49,6 +49,9 @@ function reloadusers() { window.setTimeout("reloadusers();", chat_refresh_userlist; ?> * 1000); } } +function setfocus(){ + document.getElementsByName("chat_message")[0].focus(); +} // --> \ No newline at end of file +?> -- 2.39.5