Update booking.js

This was merged 17.4. 2024, but it was lost lost on merges on 11.5.2024.
This commit is contained in:
tm8544 2024-05-12 10:31:09 +03:00 committed by GitHub
parent 8a7f6b1c44
commit db778e11b5
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;
}
});
/**