Skip to content

Commit

Permalink
save zoom in location popup modal (publiclab#7020)
Browse files Browse the repository at this point in the history
  • Loading branch information
nstjean authored and Tlazypanda committed Jan 14, 2020
1 parent f4135f0 commit 6bf4481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/locations/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
})();

function saveLocation() {
var tags = 'lat:' + blurredLocation.getLat() + ',lon:' + blurredLocation.getLon();
var tags = 'lat:' + blurredLocation.getLat() + ',lon:' + blurredLocation.getLon() + ',zoom:' + blurredLocation.getZoom();
if (blurredLocation.isBlurred()) tags = tags + ',' + 'location:blurred'
if ($('#placenameDisplay').val() != 'Location unavailable') tags = tags + ',' + 'place:' + parameterize($('#placenameDisplay').val());
<% if params[:url] %>
Expand Down

0 comments on commit 6bf4481

Please sign in to comment.