diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-24 17:16:29 +0200 | 
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-06-24 17:16:29 +0200 | 
| commit | 8be3c44ca62c77a90b73d451124d33a3ac330cf1 (patch) | |
| tree | 08d1556e367694add08e9b9af14466ad681140fa | |
| parent | 9e3d0acf932c95c345955cc97cc544249c2051d0 (diff) | |
geolocation: correctly reference hafas variable
(copy-paste error)
Closes #146
| -rw-r--r-- | public/static/js/geolocation.js | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/public/static/js/geolocation.js b/public/static/js/geolocation.js index 1c30145..26ca349 100644 --- a/public/static/js/geolocation.js +++ b/public/static/js/geolocation.js @@ -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');  				});  | 
