From d3136e3c96535c06c4dbc79f55c0e29cde27bebc Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Thu, 27 Jun 2013 12:40:11 +0100 Subject: if geolocation fails makes sure the default map buttons are hidden --- www/js/views/around.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'www/js') 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('

' + msg + ''); - $('#relocate').hide(); // TODO: not sure we want to do this $('#front-howto').show(); }, -- cgit v1.2.3