diff options
author | Struan Donald <struan@exo.org.uk> | 2013-04-09 11:13:24 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-04-09 11:13:24 +0100 |
commit | 890cfcddffd1c70df10bf655d63e7b8fd162d853 (patch) | |
tree | 594caa04a48a0bef5c6e89672d4b7ec646710ca9 /www/js/views/home.js | |
parent | 3c9714c131708393316dc24f72bec9245902d405 (diff) |
if the user has a saved report then ask them if they want to use that
when they start the app
Diffstat (limited to 'www/js/views/home.js')
-rw-r--r-- | www/js/views/home.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/www/js/views/home.js b/www/js/views/home.js index 0a0480f..9c169a9 100644 --- a/www/js/views/home.js +++ b/www/js/views/home.js @@ -27,6 +27,8 @@ navigator.connection.type == Connection.UNKNOWN ) ) { localStorage.offline = 1; this.navigate( 'no_connection' ); + } else if ( FMS.currentDraft && FMS.currentDraft.get('lat') ) { + this.navigate( 'existing' ); } else { this.navigate( 'around' ); } |