Unverified Commit 06560481 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

landingpage / geolocation fallback: support dbris

parent f2906389
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ $(document).ready(function() {
			const res = $(document.createElement('p'));
			$.each(stops, function(i, stop) {
				const parts = stop.split(';');
				const node = $('<a class="tablerow" href="/s/' + parts[0] + '?hafas=' + parts[2] + '"><span><i class="material-icons" aria-hidden="true">' + (parts[2] == '0' ? 'train' : 'directions') + '</i>' + parts[1] + '</span></a>');
				const node = $('<a class="tablerow" href="/s/' + parts[0] + '?dbris=' + parts[2] + '&amp;hafas=' + parts[3] + '"><span><i class="material-icons" aria-hidden="true">' + (parts[2] == '0' ? 'train' : 'directions') + '</i>' + parts[1] + '</span></a>');
				node.click(function() {
					$('nav .preloader-wrapper').addClass('active');
				});
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@
						<div class="card-content">
							<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} %>">
							<div class="geolocation" data-recent="<%= join('|', map { $_->{eva} . ';' . $_->{name} . ';' . $_->{dbris} . ';' . $_->{hafas} } @{stash('recent_targets') // []} ) %>" data-backend="<%= $user->{backend_id} %>">
								<a class="btn waves-effect waves-light btn-flat request">Stationen in der Umgebung abfragen</a>
							</div>
							%= hidden_field backend_dbris => $user->{backend_dbris}