Skip to content

Commit

Permalink
Merge pull request #1523 from tm8544/patch-2
Browse files Browse the repository at this point in the history
Update booking.js
  • Loading branch information
alextselegidis committed May 13, 2024
2 parents 33cd89d + db778e1 commit b0ffe4f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions assets/js/pages/booking.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

});

/**
Expand Down

0 comments on commit b0ffe4f

Please sign in to comment.