diff options
author | Struan Donald <struan@exo.org.uk> | 2012-10-24 18:06:52 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-10-24 18:06:52 +0100 |
commit | f0c85ca460ab75fee06f8189d1877a69ffbd7244 (patch) | |
tree | 4b42f145f85581611d8df267f2e58df3afe3cc48 /www/js | |
parent | d131be23aefd14b85163629ababbf67ac9cdbf18 (diff) |
do not keep adding locate me automatically buttons
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/fixmystreet.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/fixmystreet.js b/www/js/fixmystreet.js index a2551db..282e3f4 100644 --- a/www/js/fixmystreet.js +++ b/www/js/fixmystreet.js @@ -261,7 +261,7 @@ $(document).bind('pageinit', function(){ $('#form_category').change( form_category_onchange ); // Geolocation - if (geo_position_js.init()) { + if (geo_position_js.init() && !$('#geolocate_link').length) { $('#postcodeForm').after('<a href="#" id="geolocate_link">… or locate me automatically</a>'); $('#geolocate_link').click(getPosition); } |