aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r--web/js/map-OpenLayers.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 2375d5eb8..0ed66ca53 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -406,7 +406,7 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
$('#hide_pins_link').click();
}
if (fixmystreet.page == 'new') {
- return true;
+ return false;
}
$.getJSON('/report/new/ajax', {
latitude: $('#fixmystreet\\.latitude').val(),
@@ -420,7 +420,7 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
$('#form_category').change( form_category_onchange );
}
});
- return false;
+ return lonlat;
},
locate_report_mobile: function(e) {
@@ -432,7 +432,8 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
},
locate_report: function(e) {
- if (this.locate_report_pin_and_council(e)) {
+ var lonlat = this.locate_report_pin_and_council(e);
+ if (!lonlat) {
return;
}
$('#side-form, #site-logo').show();