summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e369b35)
raw | patch | inline | side by side (parent: e369b35)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 10 Jul 2007 07:53:19 +0000 (07:53 +0000) | ||
committer | hickert <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 | patch | blob | history | |
ihtml/themes/default/password.tpl | patch | blob | history |
diff --git a/html/password.php b/html/password.php
index 3226bbca362b0f60b638085fff52109f6b3a4330..2f35eaed9d001d679efe1eb947bdea9dd9573813 100644 (file)
--- a/html/password.php
+++ b/html/password.php
$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)
<!-- 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>