diff --git a/Bootstrap.Admin/wwwroot/js/common-scripts.js b/Bootstrap.Admin/wwwroot/js/common-scripts.js index 4fd05352..8c6a07ee 100644 --- a/Bootstrap.Admin/wwwroot/js/common-scripts.js +++ b/Bootstrap.Admin/wwwroot/js/common-scripts.js @@ -141,7 +141,7 @@ $(function () { $("#gotoTop").on('click', function (e) { e.preventDefault(); - $('.main-content, html').animate({ + $('.main-content, html, body').animate({ scrollTop: 0 }, 200); }); diff --git a/Bootstrap.Client/wwwroot/js/common-scripts.js b/Bootstrap.Client/wwwroot/js/common-scripts.js index cb64fd11..aad118ad 100644 --- a/Bootstrap.Client/wwwroot/js/common-scripts.js +++ b/Bootstrap.Client/wwwroot/js/common-scripts.js @@ -29,7 +29,7 @@ $("#gotoTop").on('click', function (e) { e.preventDefault(); - $('html').animate({ + $('html, body').animate({ scrollTop: 0 }, 200); });