diff options
Diffstat (limited to 'public/static/js/geolocation.js')
-rw-r--r-- | public/static/js/geolocation.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/public/static/js/geolocation.js b/public/static/js/geolocation.js index 5ef0a5c..6789730 100644 --- a/public/static/js/geolocation.js +++ b/public/static/js/geolocation.js @@ -24,7 +24,11 @@ $(document).ready(function() { const res = $(document.createElement('p')); $.each(stops, function(i, stop) { const parts = stop.split(';'); - res.append($('<a class="tablerow" href="/s/' + parts[0] + '"><span>' + parts[1] + '</span></a>')); + const node = $('<a class="tablerow" href="/s/' + parts[0] + '"><span>' + parts[1] + '</span></a>'); + node.click(function() { + $('nav .preloader-wrapper').addClass('active'); + }); + res.append(node); }); $('p.geolocationhint').text('Letzte Ziele:'); getPlaceholder().replaceWith(res); @@ -46,7 +50,11 @@ $(document).ready(function() { name = candidate.name, distance = candidate.distance.toFixed(1); - res.append($('<a class="tablerow" href="/s/' + ds100 + '"><span>' + name + '</span></a>')); + const node = $('<a class="tablerow" href="/s/' + ds100 + '"><span>' + name + '</span></a>'); + node.click(function() { + $('nav .preloader-wrapper').addClass('active'); + }); + res.append(node); }); getPlaceholder().replaceWith(res); } |