"MDL-14465, add a setfocus() function, see tracker, thanks, Ralf"

This commit is contained in:
dongsheng
2008-04-30 03:42:24 +00:00
parent 20e73acbc3
commit 083acd24db
+4 -1
View 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');
?>
?>