From b49d042f9fa2b4340665f1353cd4f2df939131a5 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 7 Aug 2024 14:53:38 +0200 Subject: [PATCH] landing page: request departures when pressing enter --- public/static/js/geolocation.js | 2 +- templates/landingpage.html.ep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/static/js/geolocation.js b/public/static/js/geolocation.js index 064e9f5..a496900 100644 --- a/public/static/js/geolocation.js +++ b/public/static/js/geolocation.js @@ -78,7 +78,7 @@ $(document).ready(function() { } }; - const geoLocationButton = $('div.geolocation > button'); + const geoLocationButton = $('div.geolocation > .request'); const recentStops = geoLocationButton.data('recent'); const getGeoLocation = function() { geoLocationButton.replaceWith($('

Stationen in der Umgebung:

')); diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index e34006a..f8f39e4 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -58,7 +58,7 @@ Hallo, <%= $user->{name} %>!

Du bist gerade nicht eingecheckt.

- + Stationen in der Umgebung abfragen
%= text_field 'station', id => 'station', class => 'autocomplete contrast-color-text', autocomplete => 'off', required => undef