From: dongsheng Date: Wed, 30 Apr 2008 03:42:24 +0000 (+0000) Subject: "MDL-14465, add a setfocus() function, see tracker, thanks, Ralf" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=083acd24dbe7c9bd0e6f61d74c3d13d6a0fc7be3;p=moodle.git "MDL-14465, add a setfocus() function, see tracker, thanks, Ralf" --- 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 +?>