From 070096ba9e4db680da8e0bfd607497d95c034af3 Mon Sep 17 00:00:00 2001 From: 0x15e Date: Mon, 15 Feb 2016 09:44:33 -0600 Subject: [PATCH] Focus the username box to save a click If the user isn't logged in already, focus the id_username box because that's probably the first thing they want to do. --- ratticweb/static/rattic/js/newcore.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ratticweb/static/rattic/js/newcore.js b/ratticweb/static/rattic/js/newcore.js index 7a5ea404..097dfd0a 100644 --- a/ratticweb/static/rattic/js/newcore.js +++ b/ratticweb/static/rattic/js/newcore.js @@ -778,5 +778,8 @@ $(document).ready(function () { // Start collecting random numbers sjcl.random.startCollectors(); + + // Focus the id_username box because if it's on the page, we probably want to log in + $("#id_username").focus(); });