Code

Udpated focus for password tpl
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 10 Jul 2007 07:53:19 +0000 (07:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 10 Jul 2007 07:53:19 +0000 (07:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6795 594d385d-05f5-0310-b6e9-bd551577e9d8

html/password.php
ihtml/themes/default/password.tpl

index 3226bbca362b0f60b638085fff52109f6b3a4330..2f35eaed9d001d679efe1eb947bdea9dd9573813 100644 (file)
@@ -287,15 +287,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);
-
 displayPWchanger();
 
 ?>
index 63f8fb4c8c143294b8f587181e828efe2fc3901c..9a15da4da12e6bf3c174065b62770e1233fda645 100644 (file)
@@ -43,7 +43,6 @@
     <!-- Display SSL warning message on demand -->
     <p class='gosaLoginWarning'> {$ssl} </p>
     <input type='hidden' name='javascript' value='false'/>             
-    {$focus}
 
     <!-- Display error message on demand -->
     <p class='gosaLoginWarning'> {$message} </p>
 <!-- Place cursor in username field -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
-  focus_field('directory', 'username', 'current_password');
+  focus_field('error_accept','uid','directory', 'username', 'current_password');
   -->
 </script>