Code

Added popup function
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Jun 2005 09:57:24 +0000 (09:57 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 10 Jun 2005 09:57:24 +0000 (09:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@655 594d385d-05f5-0310-b6e9-bd551577e9d8

html/include/focus.js
html/main.php

index 978939c84821d76c5864da41f57db266ec06e209..74ac8ceac371e8b565b074bf8d3c1eb3bd27ca8c 100644 (file)
@@ -97,3 +97,13 @@ function toggle(element) {
 
 }
 
+function popup(target, name) {
+       var mypopup= 
+               window.open(
+                       target,
+                       name,
+                       "width=600,height=700,location=no,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes"
+               );
+       mypopup.focus();
+       return false;
+}
index d04ede3b744868593ecd56ea9fcbfd4f151e7655..40222d053f79160b2461f7e728821301a5d46dac 100644 (file)
@@ -212,8 +212,9 @@ if ($_SESSION['js']==FALSE){
   $smarty->assign("help_method", "href='helpviewer.php$plug' target='_new'");
 } else {
   $smarty->assign("javascript", "true");
-  $smarty->assign("help_method", "href='' onClick=\"window.open('helpviewer.php$plug','{t}GOsa help{/t}','width=600,height=700,location=no,toolbar=no,directories=no,menubar=no,status=no,scrollbars=yes')\"");
+  $smarty->assign("help_method","href='' onclick=\"return popup('helpviewer.php$plug')\",'GOsa help')\"");
 }
+
 $smarty->assign ("username", $ui->username);
 $smarty->assign ("go_logo", get_template_path('images/go_logo.png'));
 $smarty->assign ("go_base", get_template_path('images/dtree.png'));