diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-01 11:11:47 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-01 11:11:47 +0000 |
commit | 195d9b4e10132018859ff120c89819c1f94fa7ed (patch) | |
tree | eb2d697bc453885994ada38b8c8698f128690590 /web/js/map-OpenLayers.js | |
parent | 24e2a89a9ea54e5c9554814ba3f602d29d975cbb (diff) |
Bugfix.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 7 |
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(); |