aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/views/offline.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-08-23 12:28:22 +0100
committerStruan Donald <struan@exo.org.uk>2013-08-23 12:28:22 +0100
commit05a58fa513a0a20834eface604217bf80513582b (patch)
tree74a90498e71dc2b6256da5bca320c63b5af726a5 /src/js/views/offline.js
parent3f0eaa675e1dd90cf32fae78806da5b87203b0f5 (diff)
Correctly handle back button on start screens
On the inital screens the android back button should quit the app, or if on the map screen and you've started a report it should cancel it. Add in a default back method to FMSView and an override method for the map, exising report and offline screens Fixes #117
Diffstat (limited to 'src/js/views/offline.js')
-rw-r--r--src/js/views/offline.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/js/views/offline.js b/src/js/views/offline.js
index ff28e4b..c90cd90 100644
--- a/src/js/views/offline.js
+++ b/src/js/views/offline.js
@@ -22,6 +22,10 @@
'blur textarea': 'toggleNextButton'
},
+ _back: function() {
+ navigator.app.exitApp();
+ },
+
draftHasContent: function() {
var hasContent = false;