mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-28 01:22:25 +03:00
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:
parent
8a7f6b1c44
commit
db778e11b5
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue