diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-27 12:40:11 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-28 09:44:02 +0100 |
commit | d3136e3c96535c06c4dbc79f55c0e29cde27bebc (patch) | |
tree | 7f7a93e740eba9580561a37a0ea8b43efec111c5 /www/js | |
parent | aaada04f334c23a0b91ec3feab1825a23f7224c7 (diff) |
if geolocation fails makes sure the default map buttons are hidden
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/views/around.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/www/js/views/around.js b/www/js/views/around.js index fc9a7e6..5d06dbf 100644 --- a/www/js/views/around.js +++ b/www/js/views/around.js @@ -139,8 +139,11 @@ } else { msg = FMS.strings.location_problem; } + if ( !fixmystreet.map ) { + $('#relocate').hide(); + $('#mark-here').hide(); + } $('#front-howto').html('<p>' + msg + '</msg>'); - $('#relocate').hide(); // TODO: not sure we want to do this $('#front-howto').show(); }, |