aboutsummaryrefslogtreecommitdiffstats
path: root/www/js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-10-24 18:06:52 +0100
committerStruan Donald <struan@exo.org.uk>2012-10-24 18:06:52 +0100
commitf0c85ca460ab75fee06f8189d1877a69ffbd7244 (patch)
tree4b42f145f85581611d8df267f2e58df3afe3cc48 /www/js
parentd131be23aefd14b85163629ababbf67ac9cdbf18 (diff)
do not keep adding locate me automatically buttons
Diffstat (limited to 'www/js')
-rw-r--r--www/js/fixmystreet.js2
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">&hellip; or locate me automatically</a>');
$('#geolocate_link').click(getPosition);
}