Code

Added automatic reload to gotomasses
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Oct 2007 08:39:54 +0000 (08:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 25 Oct 2007 08:39:54 +0000 (08:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7651 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/gotomasses/class_gotomasses.inc

index 74e81cb375658a617d2229af1f5d3f061be18fc8..3fb9061eccafb9aa2d4e4a752404079cb6462377 100644 (file)
@@ -195,7 +195,17 @@ class gotomasses extends plugin
 
     $this->divlist->execute();
     $this->divlist->SetEntries($this->get_queue_entries()); 
-    return($this->divlist->Draw());
+    $str = 
+      "<script type=\"text/javascript\">
+      <!--
+        var time = null
+        function move() {
+          window.location = '?plug=".$_GET['plug']."'
+        }
+        setInterval(\"move()\",20000);
+        //-->
+        </script>";
+    return($str.$this->divlist->Draw());
   }