diff options
author | Zarino Zappia <zarino@mysociety.org> | 2016-06-17 13:39:06 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-07-11 15:15:14 +0100 |
commit | ee7234891fd1d3d57f9b3e51df3d6dda49e465d2 (patch) | |
tree | ed2bcdb4739b0083ca5db5b010d55ab8c3dad1bd /web/js/map-google.js | |
parent | bdaf17a566b235865ad004e427c6f2230df39f24 (diff) |
Load in report details on around page via ajax.
Include URL changing, using history.pushState.
Show a larger marker icon for the selected report.
Make sure title is updated, and correct sub_map_links are shown.
The /report/new template is now wrapped in a <div id="side-form">
rather than <div id="side"> for consistency with the /around page,
which keeps display_all_reports_in_area() simpler, because it can
always assume "#side" means "list of reports".
Diffstat (limited to 'web/js/map-google.js')
-rw-r--r-- | web/js/map-google.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/map-google.js b/web/js/map-google.js index a00d52ba1..fa2b6d90e 100644 --- a/web/js/map-google.js +++ b/web/js/map-google.js @@ -82,7 +82,7 @@ fixmystreet.maps = {}; function map_clicked(e) { var lonlat = e.latLng; - fixmystreet.begin_report(lonlat); + fixmystreet.display.begin_report(lonlat); } /* Pan data handler */ |