summaryrefslogtreecommitdiff
path: root/public/static/js/geostop.js
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-03 15:07:13 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-03 15:07:13 +0200
commit3184facb4b497bc44e5b5d54f0ce0fa5a4d88d3b (patch)
tree55a9e1fc951444351b8d80008b11312642a34794 /public/static/js/geostop.js
parentb7fa09f8139715c282ee49df764da2cfe53d4ced (diff)
do not treat hafas=0 as "HAFAS enabled"
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'));