Commit 3a42de22 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Focus auto sur le 1er champ vide.

parent 6fa486a5
......@@ -30,3 +30,8 @@ $form->setAttribute('method', 'post');
<?php if ($this->enableRegistration) : ?>
<?php echo $this->translate("Not registered?"); ?> <a href="<?php echo $this->url('zfcuser/register') . ($this->redirect ? '?redirect='.$this->redirect : '') ?>"><?php echo $this->translate("Sign up!"); ?></a>
<?php endif; ?>
<script type="text/javascript">
// focus sur le 1er champ vide
$("input").filter(function() { return this.value==""; }).get(0).focus();
</script>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment