mirror of
https://github.com/owntracks/recorder.git
synced 2026-05-13 03:16:32 +00:00
fix paths to be relative to docroot for map/, views/, and last/
via ckrey
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user