aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/mobile.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-06-13 15:45:22 +0100
committerStruan Donald <struan@exo.org.uk>2012-06-13 15:45:22 +0100
commit0d54bc7ac65c2db22ba9bf9822acb22849b7b1e2 (patch)
tree90c0680857c74ff3e9436e20089e3e73566a4957 /www/js/mobile.js
parent77c45f2b684cdd416a94bb5b6e5a7e4db684d330 (diff)
ICS does not seem to let you dismiss busy screen after page transition
Diffstat (limited to 'www/js/mobile.js')
-rw-r--r--www/js/mobile.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/www/js/mobile.js b/www/js/mobile.js
index 0c0ceec..07d9733 100644
--- a/www/js/mobile.js
+++ b/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';
}
}