Committed a fix for streaming chat from Dan Polawski, MDL-6791

Seems to help!
This commit is contained in:
moodler 2006-10-04 12:58:09 +00:00
parent ed586fb863
commit 57bdc37ddb

View File

@ -58,7 +58,11 @@
if ($chatuser->version == 'header_js') {
/// force msg referesh ASAP
echo '<script type="text/javascript">parent.jsupdate.location.href = parent.jsupdate.document.anchors[0].href;parent.input.enableForm();</script>';
if ($CFG->chat_normal_updatemode == 'jsupdated') { // See bug MDL-6791
echo '<script type="text/javascript">parent.input.enableForm();</script>';
} else {
echo '<script type="text/javascript">parent.jsupdate.location.href = parent.jsupdate.document.anchors[0].href;parent.input.enableForm();</script>';
}
}
redirect('../empty.php');