From 671b3344b4b8354aefb994e2b023f1504e18aad5 Mon Sep 17 00:00:00 2001 From: Mike Olund Date: Mon, 27 Mar 2017 18:21:33 -0700 Subject: [PATCH] Fixed spinner --- edivorce/apps/core/static/js/main.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/edivorce/apps/core/static/js/main.js b/edivorce/apps/core/static/js/main.js index f7e6d190..30b49ca8 100755 --- a/edivorce/apps/core/static/js/main.js +++ b/edivorce/apps/core/static/js/main.js @@ -112,15 +112,13 @@ $(function () { $('div#progress-overlay-spinner').spin('large'); setTimeout(function(){ - $('div#progress-overlay').hide(); - $('div#progress-overlay-spinner').spin(false); window.location.href = href; - }, 300); + }, 0); }); // kills the spinner when the back button is pressed - $(window).on('beforeunload', function () { + $(window).on('pageshow', function () { $('div#progress-overlay').hide(); $('div#progress-overlay-spinner').spin(false); });