Merge pull request #1523 from tm8544/patch-2

Update booking.js
This commit is contained in:
Alex Tselegidis 2024-05-13 13:13:40 +02:00 committed by GitHub
commit b0ffe4ff1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -424,6 +424,13 @@ App.Pages.Booking = (function () {
$('#step-' + nextTabIndex).addClass('active-step');
$('#wizard-frame-' + nextTabIndex).fadeIn();
});
// Scroll to the top of the page. On a small screen, especially on a mobile device, this is very useful.
const scrollingElement = (document.scrollingElement || document.body);
if (window.innerHeight < scrollingElement.scrollHeight) {
scrollingElement.scrollTop = 0;
}
});
/**