From b7be045d3c601fb29f6688ee3913927f8c90478f Mon Sep 17 00:00:00 2001 From: Bryan Hurst Date: Thu, 20 Aug 2020 10:22:52 -0600 Subject: [PATCH] #1013 any time an ajax submission is marked as btn-danger, we use the loading screen for the refresh after submit. --- ADSM/static/js/adsm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ADSM/static/js/adsm.js b/ADSM/static/js/adsm.js index 1f538729c..d74088940 100644 --- a/ADSM/static/js/adsm.js +++ b/ADSM/static/js/adsm.js @@ -156,7 +156,8 @@ $(function(){ } if($self.parent().find('button[type=submit]').hasClass('btn-danger')) {// MOST IMPORTANT: for deleting outputs on form submission success_callback = function () { - window.location.reload() + //window.location.reload() + window.location.href = "/LoadingScreen/?loading_url=" + window.location.pathname; }; //updates Navigation bar context } ajax_submit_complex_form_and_replaceWith(formAction, formData, $self, load_target, loading_message, success_callback);