]> source.dussan.org Git - nextcloud-server.git/commitdiff
autofocus on the username field for setup & login
authorJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Wed, 6 Jul 2011 17:43:24 +0000 (19:43 +0200)
committerJan-Christoph Borchardt <JanCBorchardt@fsfe.org>
Wed, 6 Jul 2011 17:43:24 +0000 (19:43 +0200)
core/templates/installation.php
core/templates/login.php

index b592cd6533d82772ff01c8e69f6966fd41e16421..c3bbe692c1c329778fef7bfb74948f8c7c72b803 100644 (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>
         
index e0f6ce23e2e01b35aaaabe1afec1fad68cb189ad..0ed4178a984d5fe3be1084ace181ec2afe1ebcd9 100644 (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>