geolocation: correctly reference hafas variable

(copy-paste error)

Closes #146
This commit is contained in:
Birte Kristina Friesel 2024-06-24 17:16:29 +02:00
parent 9e3d0acf93
commit 8be3c44ca6
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -51,7 +51,7 @@ $(document).ready(function() {
hafas = candidate.hafas,
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() {
$('nav .preloader-wrapper').addClass('active');
});