From 185a6df5e09dc89a50f23858e9cb221aacca9327 Mon Sep 17 00:00:00 2001 From: gebele Date: Tue, 6 Aug 2019 09:39:09 +0000 Subject: start render task after file processing is finished --- views/batch.haml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/views/batch.haml b/views/batch.haml index b03d1c7..e0fc573 100644 --- a/views/batch.haml +++ b/views/batch.haml @@ -26,7 +26,7 @@ // prepare variable values for javascript // increase timer interval for large datasets - - ctimer = 2000#((@compounds_size/1000) == 0 ? 1000 : ((@compounds_size/1000)*1000)) + - ctimer = 10000#((@compounds_size/1000) == 0 ? 1000 : ((@compounds_size/1000)*1000)) // process batch predictions - @models.each_with_index do |model,idx| - m = Model::Validation.find model @@ -66,14 +66,16 @@ }, timer ); }else{ markers[idx] = setInterval(function(){ - renderTask(task_uri,idx); // check that dataset parsing is completed if (document.getElementById("uploadDataset")){ $("#est_"+idx).show(); $("#circle_"+idx).hide(); } else { - $("#est_"+idx).hide(); - $("#circle_"+idx).show(); + renderTask(task_uri,idx); + if ( $("#est_"+idx).is(":visible") ){ + $("#est_"+idx).hide(); + $("#circle_"+idx).show(); + } } }, timer ); }; -- cgit v1.2.3