geolocation: correctly reference hafas variable
(copy-paste error) Closes #146
This commit is contained in:
parent
9e3d0acf93
commit
8be3c44ca6
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue