From 3184facb4b497bc44e5b5d54f0ce0fa5a4d88d3b Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 3 Apr 2024 15:07:13 +0200 Subject: do not treat hafas=0 as "HAFAS enabled" --- public/static/js/geostop.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'public/static/js/geostop.js') 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')); -- cgit v1.2.3