Skip to content

Commit

Permalink
Revert "#1013 Change order of refresh when deleting results."
Browse files Browse the repository at this point in the history
This reverts commit a33f5ce
  • Loading branch information
BryanHurst committed Aug 18, 2020
1 parent 80f7191 commit 79dcac3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ADSM/static/js/adsm.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,12 @@ $(function(){
rebuild_protocols_list();
}
}

ajax_submit_complex_form_and_replaceWith(formAction, formData, $self, load_target, loading_message, success_callback);

if($self.parent().find('button[type=submit]').hasClass('btn-danger')) {// MOST IMPORTANT: for deleting outputs on form submission
success_callback = function () {
window.location.reload()
}; //updates Navigation bar context
}
ajax_submit_complex_form_and_replaceWith(formAction, formData, $self, load_target, loading_message, success_callback);
});

$(document).on('click', '#update_adsm', function(event){
Expand Down

0 comments on commit 79dcac3

Please sign in to comment.