aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-04-19 12:24:21 +0100
committerStruan Donald <struan@exo.org.uk>2013-04-22 15:55:59 +0100
commit8328f800e690ab5d63e9d246ec174893a9b59fab (patch)
treedc425061343c81a4fb21cecac5165dcb5879c8e0 /www/js
parent23041baceabed066bc4f82b3b1a6f94025a1000b (diff)
add isOffline check to around page
Diffstat (limited to 'www/js')
-rw-r--r--www/js/views/around.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/www/js/views/around.js b/www/js/views/around.js
index 162d69d..759de9f 100644
--- a/www/js/views/around.js
+++ b/www/js/views/around.js
@@ -15,7 +15,9 @@
},
afterDisplay: function() {
- if ( FMS.currentLocation ) {
+ if ( FMS.isOffline ) {
+ this.navigate( 'offline' );
+ } else if ( FMS.currentLocation ) {
var info = { coordinates: FMS.currentLocation };
FMS.currentLocation = null;
this.gotLocation(info);