fix paths to be relative to docroot for map/, views/, and last/

via ckrey
This commit is contained in:
Jan-Piet Mens
2019-01-11 12:11:33 +01:00
parent 1ae80efbc6
commit 339ed33904
2 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@
script.src = 'https://maps.googleapis.com/maps/api/js?v=3' +
'&key=' + apiKey +'&callback=initialize_googlemaps';
} else {
$("head").append("<link rel='stylesheet' href='/static/leaflet/leaflet.css' type='text/css' />");
$("head").append("<link rel='stylesheet' href='../static/leaflet/leaflet.css' type='text/css' />");
// Dynamic script loading from http://stackoverflow.com/a/8578840
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
@@ -45,7 +45,7 @@
js.onload = function(){
initialize_leaflet();
};
js.src = "/static/leaflet/leaflet.js";
js.src = "../static/leaflet/leaflet.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'leaflet'));
}