From: cajus Date: Tue, 26 Jun 2007 07:18:17 +0000 (+0000) Subject: Added focus to error window X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c8db6a433dd387a9971e555f166f01764adac1d0;p=gosa.git Added focus to error window git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6686 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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;