mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-21 06:15:31 +08:00
Merge pull request #920 from okriuchykhin/ok_SCI_1872
Fix experiment workflow image update indicator [SCI-1872]
This commit is contained in:
commit
a31d616cf8
2 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<% if experiment.workflowimg? && experiment.active_modules.length > 0 %>
|
||||
<% if experiment.active_modules.length > 0 %>
|
||||
<div class="workflowimg-container"
|
||||
data-check-img="<%= updated_img_experiment_url(experiment) %>"
|
||||
data-updated-img="<%= fetch_workflow_img_experiment_url(experiment) %>"
|
||||
|
|
Loading…
Reference in a new issue