mirror of
https://github.com/moodle/moodle.git
synced 2025-02-18 23:05:30 +01:00
Committed a fix for streaming chat from Dan Polawski, MDL-6791
Seems to help!
This commit is contained in:
parent
ed586fb863
commit
57bdc37ddb
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user