]> git.mjollnir.org Git - moodle.git/commitdiff
Committed a fix for streaming chat from Dan Polawski, MDL-6791
authormoodler <moodler>
Wed, 4 Oct 2006 12:58:09 +0000 (12:58 +0000)
committermoodler <moodler>
Wed, 4 Oct 2006 12:58:09 +0000 (12:58 +0000)
Seems to help!

mod/chat/gui_header_js/insert.php

index 77e127c8a7bacfb04d780369bbde70be6cea15e1..799d6842c78f6dac5107a4ab11d51bf852f4ac00 100644 (file)
 
     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');