summaryrefslogtreecommitdiff
path: root/public/static/js/geostop.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/static/js/geostop.js')
-rw-r--r--public/static/js/geostop.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/public/static/js/geostop.js b/public/static/js/geostop.js
index 00699ec..fa2d6f1 100644
--- a/public/static/js/geostop.js
+++ b/public/static/js/geostop.js
@@ -42,7 +42,11 @@ $(function() {
hafas = candidate.hafas;
const stationlink = $(document.createElement('a'));
- stationlink.attr('href', eva + '?hafas=' + hafas);
+ if (hafas) {
+ stationlink.attr('href', eva + '?hafas=' + hafas);
+ } else {
+ stationlink.attr('href', eva);
+ }
stationlink.text(name + ' ');
const distancenode = $(document.createElement('div'));