diff options
author | Struan Donald <struan@exo.org.uk> | 2013-08-12 17:39:54 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-08-12 17:39:54 +0100 |
commit | f36dd65f877f938a83c6124df856e0429e46982c (patch) | |
tree | a669974889e8a83b3b1c00b3a7c4f45684158ee3 /src/js/views/around.js | |
parent | afba393010b7a2ae4317f6197400ca43d086e7c6 (diff) |
Display help the first time the app is run
Also record when help has been viewed so we don't display it again.
For #92.
Diffstat (limited to 'src/js/views/around.js')
-rw-r--r-- | src/js/views/around.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/js/views/around.js b/src/js/views/around.js index 70b6a02..38e235a 100644 --- a/src/js/views/around.js +++ b/src/js/views/around.js @@ -108,6 +108,11 @@ fixmystreet.select_feature.deactivate(); fixmystreet.select_feature.activate(); fixmystreet.nav.activate(); + + if ( !FMS.usedBefore ) { + FMS.helpShow(); + FMS.helpViewed(); + } }, positionUpdate: function( info ) { @@ -177,6 +182,11 @@ } $('#front-howto').html('<p>' + msg + '</msg>'); $('#front-howto').show(); + + if ( !FMS.usedBefore ) { + FMS.helpShow(); + FMS.helpViewed(); + } }, displayButtons: function(isLocationSet) { |