summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-07 14:53:38 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-07 14:53:38 +0200
commitb49d042f9fa2b4340665f1353cd4f2df939131a5 (patch)
tree42b4d36f1c689d8c47f59301cac125b452c3b7b5
parent7e9f6bdf90605d43f10bfe82a2611f9436546be7 (diff)
landing page: request departures when pressing enter
-rw-r--r--public/static/js/geolocation.js2
-rw-r--r--templates/landingpage.html.ep2
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($('<p class="geolocationhint">Stationen in der Umgebung:</p><div class="progress"><div class="indeterminate"></div></div>'));
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 @@
<span class="card-title">Hallo, <%= $user->{name} %>!</span>
<p>Du bist gerade nicht eingecheckt.</p>
<div class="geolocation" data-recent="<%= join('|', map { $_->{eva} . ';' . $_->{name} . ';' . $_->{hafas} } @{stash('recent_targets') // []} ) %>" data-backend="<%= $user->{backend_id} %>">
- <button class="btn waves-effect waves-light btn-flat">Stationen in der Umgebung abfragen</button>
+ <a class="btn waves-effect waves-light btn-flat request">Stationen in der Umgebung abfragen</a>
</div>
<div class="input-field">
%= text_field 'station', id => 'station', class => 'autocomplete contrast-color-text', autocomplete => 'off', required => undef