<?php // $Id$
- $nomoodlecookie = true; // Session not needed!
+ define('NO_MOODLE_COOKIES', true); // session not used here
require('../../../config.php');
require('../lib.php');
onsubmit="return empty_field_and_submit()" style="margin:0">
<input type="text" id="input_chat_message" name="chat_message" size="50" value="" />
<?php helpbutton('chatting', get_string('helpchatting', 'chat'), 'chat', true, false); ?><br />
- <input type="checkbox" id="auto" size="50" value="" checked /><?php echo get_string('autoscroll', 'chat');?>
+ <input type="checkbox" id="auto" size="50" value="" checked='true' /><?php echo get_string('autoscroll', 'chat');?>
</form>
<form action="insert.php" method="post" target="empty" id="sendForm">
<?php // $Id$
- $nomoodlecookie = true; // Session not needed!
+ define('NO_MOODLE_COOKIES', true); // session not used here
require('../../../config.php');
require('../lib.php');
}
}
?>
- if(parent.msg && parent.input.document.getElementById('auto').checked){
- parent.msg.scroll(1,5000000);
+ if(parent.input){
+ var autoscroll = parent.input.document.getElementById('auto');
+ if(parent.msg && autoscroll && autoscroll.checked){
+ parent.msg.scroll(1,5000000);
+ }
}
//]]>
</script>