diff options
author | Struan Donald <struan@exo.org.uk> | 2012-10-19 14:28:19 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-10-19 14:28:19 +0100 |
commit | eb684d35cdf39ea78806995aec6e0d252c5ebb4b (patch) | |
tree | 261ba7af69946dae5af7b7fffafb7ad60b47ba91 /www/js/mobile.js | |
parent | 22ec09c6174669021895601322ded0bf36335442 (diff) |
Clear password and email field after succesful sign in
blur fields to make sure ios virtual keyboard is dismissed
Diffstat (limited to 'www/js/mobile.js')
-rw-r--r-- | www/js/mobile.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/mobile.js b/www/js/mobile.js index 4a15cde..c44501d 100644 --- a/www/js/mobile.js +++ b/www/js/mobile.js @@ -363,6 +363,8 @@ function postReport(e) { function sign_in() { showBusy( 'Signing In', 'Please wait while you are signed in' ); + $('#form_email').blur(); + $('#password_sign_in').blur(); jQuery.ajax( { url: CONFIG.FMS_URL + "auth/ajax/sign_in", type: 'POST', @@ -381,6 +383,8 @@ function sign_in() { $('#user-meta').html('<p>You are signed in as ' + localStorage.username + '.</p>'); $('#form_sign_in_only').hide(); $('#forget_button').show(); + $('#form_email').val(''); + $('#password_sign_in').val(''); } else { hideBusy(); $('#form_email').before('<div class="form-error">There was a problem with your email/password combination.</div>'); @@ -401,6 +405,7 @@ function display_signed_out_msg() { $('#form_sign_in_only').hide(); $('#forget_button').show(); } else { + $('#forget_button').hide(); $('#form_sign_in_only').show(); } } |