changeset 16f591a30d88 in www.tryton.org:default
details: https://hg.tryton.org/www.tryton.org?cmd=changeset;node=16f591a30d88
description:
Replace space by '-' for provider id on the map
diffstat:
templates/service_providers.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 4fb1ee0a89d2 -r 16f591a30d88 templates/service_providers.html
--- a/templates/service_providers.html Thu Jun 13 22:22:28 2019 +0200
+++ b/templates/service_providers.html Tue Jun 18 11:15:35 2019 +0200
@@ -52,7 +52,7 @@
var name = marker[0];
marker[1].forEach(function(LatLng) {
L.marker(LatLng).addTo(map)
- .bindPopup('<a href="#' + name.toLowerCase() + '">' + name
+ '</a>');
+ .bindPopup('<a href="#' + name.toLowerCase().replace(/ /g,
'-') + '">' + name + '</a>');
});
});
}