"MDL-14465, add a setfocus() function, see tracker, thanks, Ralf"
This commit is contained in:
@@ -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');
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user