aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2012-11-26 21:38:29 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2012-11-26 21:38:29 +0100
commita3009452fae296220d3d9fb51783d586434aeaea (patch)
tree1ab51d72dfc5a36377d543f7377e5832ce936dff
parentfa2f6ba1627b6ae50ada1892986b35ec8323d703 (diff)
downloadmediagoblin-a3009452fae296220d3d9fb51783d586434aeaea.tar.lz
mediagoblin-a3009452fae296220d3d9fb51783d586434aeaea.tar.xz
mediagoblin-a3009452fae296220d3d9fb51783d586434aeaea.zip
Autofocus the username field on user creation
On a page with the single purpose to enter new user data, we should auto-focus the username field. It is very annoying to have to click in that field before starting to type. Theoretically, there is the "autofocus" attribute in html5, but IE does not support that. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
-rw-r--r--mediagoblin/templates/mediagoblin/auth/register.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/mediagoblin/templates/mediagoblin/auth/register.html b/mediagoblin/templates/mediagoblin/auth/register.html
index a2505cb9..6dff0207 100644
--- a/mediagoblin/templates/mediagoblin/auth/register.html
+++ b/mediagoblin/templates/mediagoblin/auth/register.html
@@ -42,4 +42,6 @@
</div>
</div>
</form>
+<!-- Focus the username field by default -->
+<script>$(document).ready(function(){$("#username").focus();});</script>
{% endblock %}