From 917c2cf28e5abb885aac005d8dab771e421dbb30 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Fri, 22 Dec 2017 13:12:52 +0100 Subject: [PATCH] Fix experiment workflow image update indicator [SCI-1872] --- app/assets/javascripts/projects/show.js | 5 +++-- app/views/projects/show/_experiment.html.erb | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/projects/show.js b/app/assets/javascripts/projects/show.js index 06d913688..52268a69b 100644 --- a/app/assets/javascripts/projects/show.js +++ b/app/assets/javascripts/projects/show.js @@ -4,7 +4,6 @@ function init(){ $("[data-id]").each(function(){ var that = $(this); - that.find(".workflowimg-container").hide(); initProjectExperiment(that); }); @@ -36,7 +35,9 @@ }, error: function (ev) { if (ev.status == 404) { - setTimeout(checkUpdatedImg(img_url, url, timestamp, container), 500); + setTimeout(function () { + checkUpdatedImg(img_url, url, timestamp, container) + }, 5000); } else { animateSpinner(container, false); } diff --git a/app/views/projects/show/_experiment.html.erb b/app/views/projects/show/_experiment.html.erb index 51d64c2e9..aa4ed3551 100644 --- a/app/views/projects/show/_experiment.html.erb +++ b/app/views/projects/show/_experiment.html.erb @@ -22,7 +22,7 @@
- <% if experiment.workflowimg? && experiment.active_modules.length > 0 %> + <% if experiment.active_modules.length > 0 %>