diff options
author | Struan Donald <struan@exo.org.uk> | 2012-06-13 15:45:22 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-06-13 15:45:22 +0100 |
commit | 5cffcc1cc7509ff4135233aa6995bf50339f994e (patch) | |
tree | 1d1677254df438d47ce3416a17947fc4b364481e /phonegap | |
parent | 9b6317ce338b32fab942e19a544e834028cd7ac4 (diff) |
ICS does not seem to let you dismiss busy screen after page transition
Diffstat (limited to 'phonegap')
-rw-r--r-- | phonegap/www/js/mobile.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/phonegap/www/js/mobile.js b/phonegap/www/js/mobile.js index 0c0ceec4c..07d973315 100644 --- a/phonegap/www/js/mobile.js +++ b/phonegap/www/js/mobile.js @@ -40,6 +40,7 @@ function show_around( lat, long ) { localStorage.latitude = lat; localStorage.longitude = long; localStorage.pc = pc; + hideBusy(); window.location='around.html'; return false; } @@ -141,6 +142,7 @@ function lookup_string(q) { } hideBusy(); }); + return false; } function locate() { @@ -238,8 +240,10 @@ function fileUploadSuccess(r) { if ( data.success ) { if ( data.report ) { localStorage.report = data.report; + hideBusy(); window.location = 'report_created.html'; } else { + hideBusy(); window.location = 'email_sent.html'; } } else { @@ -320,8 +324,10 @@ function postReport(e) { localStorage.long = null; if ( data.report ) { localStorage.report = data.report; + hideBusy(); window.location = 'report_created.html'; } else { + hideBusy(); window.location = 'email_sent.html'; } } else { @@ -356,6 +362,7 @@ function sign_in() { console.log(data); if ( data.name ) { localStorage.name = data.name; + hideBusy(); window.location = 'signed_in.html'; $('#sign_out').show(); $('#sign_in').hide(); @@ -383,6 +390,7 @@ function sign_out() { if ( data.signed_out ) { localStorage.signed_out = 1; localStorage.name = null; + hideBusy(); document.location = 'sign_in.html'; } } |