From 929d8aab5ee6a672454652c4dcac97fdae8a4884 Mon Sep 17 00:00:00 2001 From: zmagod Date: Mon, 10 Apr 2017 15:40:36 +0200 Subject: [PATCH] disables annimateSpiner in result assets actions --- app/assets/javascripts/results/result_assets.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }); }