Skip to content
Snippets Groups Projects
Unverified Commit 8be3c44c authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

geolocation: correctly reference hafas variable

(copy-paste error)

Closes #146
parent 9e3d0acf
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ $(document).ready(function() { ...@@ -51,7 +51,7 @@ $(document).ready(function() {
hafas = candidate.hafas, hafas = candidate.hafas,
distance = candidate.distance.toFixed(1); distance = candidate.distance.toFixed(1);
const node = $('<a class="tablerow" href="/s/' + eva + '?hafas=' + hafas + '"><span><i class="material-icons" aria-hidden="true">' + (parts[2] == 0 ? 'train' : 'directions') + '</i>' + name + '</span></a>'); const node = $('<a class="tablerow" href="/s/' + eva + '?hafas=' + hafas + '"><span><i class="material-icons" aria-hidden="true">' + (hafas == '0' ? 'train' : 'directions') + '</i>' + name + '</span></a>');
node.click(function() { node.click(function() {
$('nav .preloader-wrapper').addClass('active'); $('nav .preloader-wrapper').addClass('active');
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment