typo in javascript code, message submit did not work :-(

This commit is contained in:
skodak
2005-02-04 22:58:28 +00:00
parent 2ac0d13b6f
commit 342769e94d
+3 -3
View File
@@ -44,7 +44,7 @@ function empty_field_and_submit() {
function prepareusers() { function prepareusers() {
var frm = window.parent.frames; var frm = window.parent.frames;
for(i = 0; i < frm.length; ++i) { for(i = 0; i < frm.length; ++i) {
if(frm[i]).name == "users") { if(frm[i].name == "users") {
window.userFrame = frm[i]; window.userFrame = frm[i];
window.userHREF = frm[i].location.href; window.userHREF = frm[i].location.href;
window.setTimeout("reloadusers();", <?php echo $CFG->chat_refresh_userlist; ?> * 1000); window.setTimeout("reloadusers();", <?php echo $CFG->chat_refresh_userlist; ?> * 1000);
@@ -61,9 +61,9 @@ function reloadusers() {
</script> </script>
</head> </head>
<body bgcolor="<?php echo $THEME->body ?>" onload="document.getElementById('inputform').chat_message.focus();document.getElementById('inputform').chat_message.select(); prepareusers();"> <body bgcolor="<?php echo $THEME->body ?>" onload="document.getElementById('inputform').chat_message.focus(); prepareusers();">
<form action="<?php echo "http://$CFG->chat_serverhost:$CFG->chat_serverport/"; ?>" method="get" target="empty" id="inputform" onsubmit="return empty_field_and_submit();"> <form action="../empty.php" method="get" target="empty" id="inputform" onsubmit="return empty_field_and_submit();">
&gt;&gt; <input type="text" name="chat_message" size="60" value="" /> &gt;&gt; <input type="text" name="chat_message" size="60" value="" />
<?php helpbutton("chatting", get_string("helpchatting", "chat"), "chat", true, false); ?> <?php helpbutton("chatting", get_string("helpchatting", "chat"), "chat", true, false); ?>
</form> </form>