From c0548d6a8152ed2afe525e933f5885f27f35c3fc Mon Sep 17 00:00:00 2001 From: robbt Date: Tue, 12 May 2020 15:27:48 -0400 Subject: [PATCH] if the screen is small enough to have a scrollbar always go to the top --- airtime_mvc/public/js/setup/setup-config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/airtime_mvc/public/js/setup/setup-config.js b/airtime_mvc/public/js/setup/setup-config.js index f5926c844..2f9853bdf 100644 --- a/airtime_mvc/public/js/setup/setup-config.js +++ b/airtime_mvc/public/js/setup/setup-config.js @@ -117,6 +117,7 @@ function submitForm(e, obj) { e.preventDefault(); var d = $(e.target).serializeArray(); addOverlay(); + $(".viewport").scrollTop(0); // Append .promise().done() rather than using a // callback to avoid call duplication $("#overlay, #loadingImage").fadeIn(500).promise().done(function() {