openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit e395ec2e9a33b4cc7447cd5b7b536935c7e11c44
parent a0d6133cf2cd660a343b7338018480b894e3b5c6
Author: dankert <devnull@localhost>
Date:   Wed,  7 Nov 2007 21:53:25 +0100

Falls Fehler, dann Fokus auf (erstes) fehlerhaftes Feld setzen.

Diffstat:
themes/default/include/html/focus.inc.php | 9+++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/themes/default/include/html/focus.inc.php b/themes/default/include/html/focus.inc.php @@ -1,7 +1,8 @@ - -<script name="JavaScript" type="text/javascript"> -<!-- +<?php +// Wenn Eingabefehler vorhanden, dann den Fokus auf das Fehlerfeld setzen. +if (isset($errors[0])) $attr_field = $errors[0]; +?><script name="JavaScript" type="text/javascript"><!-- document.forms[0].<?php echo $attr_field ?>.focus(); document.forms[0].<?php echo $attr_field ?>.select(); -// --> + // --> </script>