From fe0f6d16ef877a1e3c6339715e9b66a2c92cd4c0 Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Wed, 30 Mar 2022 19:57:17 +0530 Subject: [PATCH] Resolve auto page scroll issue on order history page --- themes/hotel-reservation-theme/js/history.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/hotel-reservation-theme/js/history.js b/themes/hotel-reservation-theme/js/history.js index 1cc19019c..12336d90f 100644 --- a/themes/hotel-reservation-theme/js/history.js +++ b/themes/hotel-reservation-theme/js/history.js @@ -93,7 +93,9 @@ function showOrder(mode, var_content, file) return sendOrderMessage(); }); $(this).fadeIn('slow', function() { - $.scrollTo(this, 1200); + $('html, body').animate({ + scrollTop: $('#block-order-detail').offset().top + }, 1200); }); }); });