diff --git a/public/static/js/geolocation.js b/public/static/js/geolocation.js index 302047a1d632a7179d35926d55d9a279158d348a..03857a1ec7b8542a4ecf92fdcd77996eeb6f5ab7 100644 --- a/public/static/js/geolocation.js +++ b/public/static/js/geolocation.js @@ -24,7 +24,7 @@ $(document).ready(function() { const res = $(document.createElement('p')); $.each(stops, function(i, stop) { const parts = stop.split(';'); - const node = $('' + (parseInt(parts[2]) ? 'directions_bus' : 'train') + '' + parts[1] + ''); + const node = $('' + (parseInt(parts[2]) ? 'directions' : 'train') + '' + parts[1] + ''); node.click(function() { $('nav .preloader-wrapper').addClass('active'); }); @@ -51,7 +51,7 @@ $(document).ready(function() { hafas = candidate.hafas, distance = candidate.distance.toFixed(1); - const node = $('' + (parseInt(hafas) ? 'directions_bus' : 'train') + '' + name + ''); + const node = $('' + (parseInt(hafas) ? 'directions' : 'train') + '' + name + ''); node.click(function() { $('nav .preloader-wrapper').addClass('active'); }); diff --git a/templates/legend.html.ep b/templates/legend.html.ep index 91e70dffa9748aecf85c722830820ecf7778665e..4c1ecf02bde55014b182e0043f2ad886b409a95e 100644 --- a/templates/legend.html.ep +++ b/templates/legend.html.ep @@ -13,6 +13,14 @@