From c8db6a433dd387a9971e555f166f01764adac1d0 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 26 Jun 2007 07:18:17 +0000 Subject: [PATCH] Added focus to error window git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6686 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/main.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/html/main.php b/html/main.php index 701396950..fd5afa99b 100644 --- a/html/main.php +++ b/html/main.php @@ -396,6 +396,13 @@ if ((isset($config->data['MAIN']['W3CTEST']) && preg_match('/true/i', $config->d /* Show page... */ echo $display; +/* Set focus to the error button if we've an error message */ +if (isset($_SESSION['errors']) && $_SESSION['errors'] != ""){ + echo ''; +} + /* Save plist and config */ $_SESSION['plist']= $plist; $_SESSION['config']= $config; -- 2.30.2