add strings to permalink structure close #129
This commit is contained in:
parent
831e1680e9
commit
d85a5ed3b1
1 changed files with 8 additions and 1 deletions
|
|
@ -34,10 +34,17 @@ const createLink = async (e) => {
|
||||||
// get all select boxes
|
// get all select boxes
|
||||||
elemForEach('select', (elem) => {
|
elemForEach('select', (elem) => {
|
||||||
if (elem?.id) {
|
if (elem?.id) {
|
||||||
queryStringElements[elem.id] = elem?.value ?? 0;
|
queryStringElements[elem.id] = encodeURIComponent(elem?.value ?? '');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// get all text boxes
|
||||||
|
elemForEach('input[type=text]', ((elem) => {
|
||||||
|
if (elem?.id) {
|
||||||
|
queryStringElements[elem.id] = elem?.value ?? 0;
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
|
||||||
// add the location string
|
// add the location string
|
||||||
queryStringElements.latLonQuery = localStorage.getItem('latLonQuery');
|
queryStringElements.latLonQuery = localStorage.getItem('latLonQuery');
|
||||||
queryStringElements.latLon = localStorage.getItem('latLon');
|
queryStringElements.latLon = localStorage.getItem('latLon');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue