diff options
author | Struan Donald <struan@exo.org.uk> | 2013-04-18 11:50:52 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-04-18 11:57:55 +0100 |
commit | a78194a0aa6fab68e82dc035f2f95281a653265f (patch) | |
tree | 6d6f57174b2919ac0031bf1f2363d921e8730cd1 /www/js/views/details.js | |
parent | 4927e38eb8f108d4e910e691f593bca4992fb28f (diff) |
display a save for later page if between starting the report and
submitting it we have gone offline
Diffstat (limited to 'www/js/views/details.js')
-rw-r--r-- | www/js/views/details.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/www/js/views/details.js b/www/js/views/details.js index 5038d37..54aaca9 100644 --- a/www/js/views/details.js +++ b/www/js/views/details.js @@ -50,7 +50,11 @@ if ( valid ) { this.clearValidationErrors(); this.updateCurrentReport(); - this.navigate( this.next ); + if ( FMS.isOffline ) { + this.navigate( 'save_offline' ); + } else { + this.navigate( this.next ); + } } }, |