projects
/
nominatim-ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5252112
)
reverse query form: also auto-split by encoded comma
author
marc tobias
<mtmail@gmx.net>
Sun, 11 Dec 2022 02:39:10 +0000
(
03:39
+0100)
committer
mtmail
<mtmail@gmx.net>
Sun, 11 Dec 2022 13:02:08 +0000
(14:02 +0100)
src/components/SearchSectionReverse.svelte
patch
|
blob
|
history
diff --git
a/src/components/SearchSectionReverse.svelte
b/src/components/SearchSectionReverse.svelte
index e8f1a47bb90534b6b4b9e8c9a8db323665af1509..2f53f39751f5376af959c550f1e994b5cfb3b05b 100644
(file)
--- a/
src/components/SearchSectionReverse.svelte
+++ b/
src/components/SearchSectionReverse.svelte
@@
-29,7
+29,7
@@
// common mistake is to copy&paste latitude and longitude into the 'lat' search box
function maybeSplitLatitude(e) {
- var coords_split = e.target.value.split(
','
);
+ var coords_split = e.target.value.split(
/,|%2C/
);
if (coords_split.length === 2) {
document.querySelector('input[name=lat]').value = L.Util.trim(coords_split[0]);
document.querySelector('input[name=lon]').value = L.Util.trim(coords_split[1]);