Code

Updated login error focus
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 10 Jul 2007 07:43:24 +0000 (07:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 10 Jul 2007 07:43:24 +0000 (07:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6794 594d385d-05f5-0310-b6e9-bd551577e9d8

html/images/branch_grey.png [new file with mode: 0644]
html/index.php
ihtml/themes/default/login.tpl

diff --git a/html/images/branch_grey.png b/html/images/branch_grey.png
new file mode 100644 (file)
index 0000000..797e797
Binary files /dev/null and b/html/images/branch_grey.png differ
index 33ff26197b14322da089c148ca52dd87063792c3..5a4f2128ace55ec478da35ddf9bf0fb293c0283c 100644 (file)
@@ -382,14 +382,6 @@ if ($error_collector != ""){
   $smarty->assign("php_errors", "");
 }
 
-/* Set focus to the error button if we've an error message */
-$focus= "";
-if (isset($_SESSION['errors']) && $_SESSION['errors'] != ""){
-  $focus= '<script language="JavaScript" type="text/javascript">';
-  $focus.= 'document.forms[0].error_accept.focus();';
-  $focus.= '</script>';
-}
-$smarty->assign("focus", $focus);
 displayLogin();
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
index aab9b08b67b1b7e9866cc0fd6aee8fd712bf8f36..566cc787d1227138587fd3fb547d850626b30d39 100644 (file)
@@ -58,7 +58,6 @@
       </tr>
      </table>
                <input type='hidden' name='javascript' value='false'/>          
-               {$focus}
     </form>
 
     <!-- Display error message on demand -->
@@ -87,7 +86,7 @@
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
   nextfield= "{$nextfield}";
-  focus_field("{$nextfield}");
+  focus_field("error_accept","{$nextfield}");
   -->
 </script>