Use the uri in the select value
This commit is contained in:
parent
e2049c62e1
commit
bdd9246b0e
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ const makeOptionsForForm = (map, position, places = null) => {
|
|||
for (let place of places) {
|
||||
let parsedCoords = parseLocation(place.location);
|
||||
let option = document.createElement('option');
|
||||
option.setAttribute('value', place.slug);
|
||||
option.setAttribute('value', place.uri);
|
||||
option.dataset.latitude = parsedCoords.latitude;
|
||||
option.dataset.longitude = parsedCoords.longitude;
|
||||
option.appendChild(document.createTextNode(place.name));
|
||||
|
|
Loading…
Add table
Reference in a new issue