Pass editing params through to welcome page
This commit is contained in:
parent
901de4a56a
commit
2fa4225784
2 changed files with 17 additions and 3 deletions
|
@ -21,7 +21,14 @@ $(document).ready(function() {
|
|||
}
|
||||
});
|
||||
|
||||
$('.start-mapping').attr('href', '/edit?zoom=17&lat=' + params.lat + '&lon=' + params.lon);
|
||||
params = {
|
||||
lat: params.lat,
|
||||
lon: params.lon,
|
||||
zoom: params.zoom || 17,
|
||||
editor: params.editor
|
||||
};
|
||||
|
||||
$('.start-mapping').attr('href', '/edit?' + $.param(params));
|
||||
|
||||
} else if (navigator.geolocation) {
|
||||
$('.edit-geolocated').show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue