diff options
author | gebele <gebele@in-silico.ch> | 2019-08-06 09:39:09 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2019-08-06 09:39:09 +0000 |
commit | 185a6df5e09dc89a50f23858e9cb221aacca9327 (patch) | |
tree | 05f07540504a44001be2897b54d5635939319a5b /views/batch.haml | |
parent | 515ce1745800973045dbd34d4e7192018e9e7799 (diff) |
start render task after file processing is finished
Diffstat (limited to 'views/batch.haml')
-rw-r--r-- | views/batch.haml | 10 |
1 files 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 ); }; |