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 | f09fed89335348070e2e3bc301822dded23ae299 (patch) | |
tree | f12e594e2bb5c5ad1099901cf6487e701dd24fdf | |
parent | 2650dd29e2280070e2d8e9db7d7f8ead71f23ebc (diff) |
Clear password and email field after succesful sign in
blur fields to make sure ios virtual keyboard is dismissed
-rw-r--r-- | phonegap/www/js/mobile.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phonegap/www/js/mobile.js b/phonegap/www/js/mobile.js index 4a15cde13..c44501d97 100644 --- a/phonegap/www/js/mobile.js +++ b/phonegap/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(); } } |