autofocus on the username field for setup & login

This commit is contained in:
Jan-Christoph Borchardt 2011-07-06 19:43:24 +02:00
parent 5165e5dfcf
commit 4e5eb4c23e
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@
<fieldset>
<legend><?php echo $l->t( 'Create an <strong>admin account</strong>.' ); ?></legend>
<p><label for="adminlogin"><?php echo $l->t( 'Username' ); ?></label><input type="text" name="adminlogin" id="adminlogin" value="<?php print OC_HELPER::init_var('adminlogin'); ?>" /></p>
<p><label for="adminlogin"><?php echo $l->t( 'Username' ); ?></label><input type="text" name="adminlogin" id="adminlogin" value="<?php print OC_HELPER::init_var('adminlogin'); ?>" autofocus /></p>
<p><label for="adminpass"><?php echo $l->t( 'Password' ); ?></label><input type="password" name="adminpass" id="adminpass" value="<?php print OC_HELPER::init_var('adminpass'); ?>" /></p>
</fieldset>

View file

@ -5,7 +5,7 @@
<?php if($_['error']): ?>
<?php echo $l->t( 'Login failed!' ); ?>
<?php endif; ?>
<input type="text" name="user" id="user" value="" />
<input type="text" name="user" id="user" value="" autofocus />
<input type="password" name="password" id="password" value="" />
<input type="submit" value="Log in" />
</fieldset>