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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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');
				});