mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Committed a fix for streaming chat from Dan Polawski, MDL-6791
Seems to help!
This commit is contained in:
parent
ed586fb863
commit
57bdc37ddb
1 changed files with 5 additions and 1 deletions
|
@ -58,8 +58,12 @@
|
||||||
|
|
||||||
if ($chatuser->version == 'header_js') {
|
if ($chatuser->version == 'header_js') {
|
||||||
/// force msg referesh ASAP
|
/// force msg referesh ASAP
|
||||||
|
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>';
|
echo '<script type="text/javascript">parent.jsupdate.location.href = parent.jsupdate.document.anchors[0].href;parent.input.enableForm();</script>';
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
redirect('../empty.php');
|
redirect('../empty.php');
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue