Fix race condition

This commit is contained in:
Midgard 2020-05-22 22:01:41 +02:00
parent d3cb7bfca8
commit d5fe062e7f
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -1,4 +1,9 @@
$(document).ready(function() {
Handlebars.registerHelper("date", function (ddmyyyy) {
return ddmyyyy.replace(/-/g, "/");
});
L.Icon.Default.imagePath = "img/";
var popuptemplate = Handlebars.compile($("#popup-template").html());
@ -159,9 +164,4 @@ $(document).ready(function() {
var legend = new SimpleControl("#legend-template", christmasSeason ? "holiday-legend" : "legend", {
position: "bottomright"
}).addTo(map);
Handlebars.registerHelper("date", function (ddmyyyy) {
return ddmyyyy.replace(/-/g, "/");
})
});