Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Focus the FxA popup email field (bug 1095056)
Browse files Browse the repository at this point in the history
Fixes #777
  • Loading branch information
mstriemer committed Nov 7, 2014
1 parent 0081020 commit edc5c9e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/media/js/views/fxa_popup.js
Expand Up @@ -92,6 +92,14 @@ define('views/fxa_popup',
setEmail(user.get_setting('email'));
}

z.page.one('loaded', function() {
// Let the `loaded` event handler in main.js hide the splash before
// focusing the email field.
setTimeout(function() {
emailField.focus();
});
});

function redirectToFxA(action, preVerifyToken) {
var url = login.get_fxa_auth_url() +
'&email=' + encodeURIComponent(email) +
Expand Down

0 comments on commit edc5c9e

Please sign in to comment.