summaryrefslogtreecommitdiff
path: root/public/static
diff options
context:
space:
mode:
Diffstat (limited to 'public/static')
-rw-r--r--public/static/js/geolocation.js2
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');
});