From: janw Date: Fri, 14 Oct 2005 11:30:27 +0000 (+0000) Subject: Javascript check works now as expected. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aca3d5592dfcaa430e5dea50f8b2a32322cdb589;p=gosa.git Javascript check works now as expected. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1568 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 @@
+