diff options
Diffstat (limited to 'www/js/views/home.js')
-rw-r--r-- | www/js/views/home.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/www/js/views/home.js b/www/js/views/home.js index 9c169a9..383275e 100644 --- a/www/js/views/home.js +++ b/www/js/views/home.js @@ -26,8 +26,11 @@ if ( navigator && navigator.connection && ( navigator.connection.type == Connection.NONE || navigator.connection.type == Connection.UNKNOWN ) ) { localStorage.offline = 1; - this.navigate( 'no_connection' ); - } else if ( FMS.currentDraft && FMS.currentDraft.get('lat') ) { + this.navigate( 'offline' ); + } else if ( FMS.currentDraft && ( + FMS.currentDraft.get('title') || FMS.currentDraft.get('lat') || + FMS.currentDraft.get('details') || FMS.currentDraft.get('file') ) + ) { this.navigate( 'existing' ); } else { this.navigate( 'around' ); |