diff --git a/app/assets/javascripts/results/result_assets.js b/app/assets/javascripts/results/result_assets.js index 3a402983c..6fe3a6a18 100644 --- a/app/assets/javascripts/results/result_assets.js +++ b/app/assets/javascripts/results/result_assets.js @@ -17,7 +17,7 @@ $("#new-result-asset").on("ajax:success", function(e, data) { }); $("#new-result-asset").on("ajax:error", function(e, xhr, status, error) { - // TODO + animateSpinner(null, false); }); // Edit result asset button behaviour @@ -46,7 +46,7 @@ function applyEditResultAssetCallback() { }); $(".edit-result-asset").on("ajax:error", function(e, xhr, status, error) { - // TODO + animateSpinner(null, false); }); } @@ -75,6 +75,7 @@ function formAjaxResultAsset($form) { else errors = data.responseJSON.errors; $form.renderFormErrors("result", errors, true, e); + animateSpinner(null, false); }); }