summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7327f14)
raw | patch | inline | side by side (parent: 7327f14)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Jun 2005 09:57:24 +0000 (09:57 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Jun 2005 09:57:24 +0000 (09:57 +0000) |
html/include/focus.js | patch | blob | history | |
html/main.php | patch | blob | history |
diff --git a/html/include/focus.js b/html/include/focus.js
index 978939c84821d76c5864da41f57db266ec06e209..74ac8ceac371e8b565b074bf8d3c1eb3bd27ca8c 100644 (file)
--- a/html/include/focus.js
+++ b/html/include/focus.js
}
+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;
+}
diff --git a/html/main.php b/html/main.php
index d04ede3b744868593ecd56ea9fcbfd4f151e7655..40222d053f79160b2461f7e728821301a5d46dac 100644 (file)
--- a/html/main.php
+++ b/html/main.php
$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'));