]> git.mjollnir.org Git - moodle.git/commitdiff
"Chat Module, refreshing in safari fixed, merged from 1.9, MDL-16878"
authordongsheng <dongsheng>
Tue, 14 Oct 2008 08:39:55 +0000 (08:39 +0000)
committerdongsheng <dongsheng>
Tue, 14 Oct 2008 08:39:55 +0000 (08:39 +0000)
mod/chat/gui_header_js/jsupdate.php
mod/chat/gui_header_js/jsupdated.php

index 819628f3ad23a2989876aa4943178e842ca1f7c1..a480ccd390de6891b9cc04bd6cdaeb0080409a4a 100644 (file)
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html>
     <head>
-        <title> </title>
         <meta http-equiv="content-type" content="text/html; charset=utf-8" />
         <script type="text/javascript">
         //<![CDATA[
+        function safari_refresh() {
+            self.location.href= '<?php echo $refreshurl;?>';
+        }
+        var issafari = false;
+        if(window.devicePixelRatio){
+            issafari = true;
+            setTimeout('safari_refresh()', <?php echo $CFG->chat_refresh_room*1000;?>);
+        }
         if (parent.msg && parent.msg.document.getElementById("msgStarted") == null) {
             parent.msg.document.close();
             parent.msg.document.open("text/html","replace");
index c7806c369997948b635f281cd6b6cfbaa6463c3e..57421e0bfc72c9ecfaefc96815b8c4d4687299ea 100644 (file)
         <meta http-equiv="content-type" content="text/html; charset=utf-8" />
         <script type="text/javascript">
         //<![CDATA[
+        function safari_refresh() {
+            self.location.href= '<?php echo $refreshurl;?>';
+        }
+        var issafari = false;
+        if(window.devicePixelRatio){
+            issafari = true;
+            setTimeout('safari_refresh()', <?php echo $CFG->chat_refresh_room*1000;?>);
+        }
         if (parent.msg.document.getElementById("msgStarted") == null) {
             parent.msg.document.close();
             parent.msg.document.open("text/html","replace");