From aca3d5592dfcaa430e5dea50f8b2a32322cdb589 Mon Sep 17 00:00:00 2001 From: janw Date: Fri, 14 Oct 2005 11:30:27 +0000 Subject: [PATCH] Javascript check works now as expected. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1568 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/include/focus.js | 4 ++++ html/index.php | 10 +++------- ihtml/themes/default/login.tpl | 3 ++- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/html/include/focus.js b/html/include/focus.js index 9eac9f83a..ba60e13d0 100644 --- a/html/include/focus.js +++ b/html/include/focus.js @@ -118,3 +118,7 @@ function popup(target, name) { mypopup.focus(); return false; } + +function js_check(form) { + form.javascript.value = 'true'; +} diff --git a/html/index.php b/html/index.php index 1adcf42ff..432b704a6 100644 --- a/html/index.php +++ b/html/index.php @@ -38,14 +38,10 @@ if (!file_exists(CONFIG_DIR."/gosa.conf")){ $_SESSION['errors']= ""; /* Check for java script */ -if (!isset($_GET['js']) && !isset($_SESSION['js'])){ - echo ''; - - $_SESSION['js']= FALSE; -} else { +if(isset($_POST['javascript']) && $_POST['javascript'] == "true") { $_SESSION['js']= TRUE; +} else { + $_SESSION['js']= FALSE; } /* Check if gosa.conf is accessable */ diff --git a/ihtml/themes/default/login.tpl b/ihtml/themes/default/login.tpl index 59807e55b..94721fa07 100644 --- a/ihtml/themes/default/login.tpl +++ b/ihtml/themes/default/login.tpl @@ -19,7 +19,7 @@

{$ssl}

-
+
@@ -57,6 +57,7 @@
+
-- 2.30.2