Skip to content

Commit

Permalink
#1013 any time an ajax submission is marked as btn-danger, we use the…
Browse files Browse the repository at this point in the history
… loading screen for the refresh after submit.
  • Loading branch information
BryanHurst committed Aug 20, 2020
1 parent 79dcac3 commit b7be045
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ADSM/static/js/adsm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b7be045

Please sign in to comment.