diff options
author | gebele <gebele@in-silico.ch> | 2019-08-02 10:57:06 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2019-08-02 10:57:06 +0000 |
commit | b349cb51c4e46e1ae1bb309e9c589f1cff89e5af (patch) | |
tree | 397109ca0cddd78c60258ce2a85a89a67d1a4e77 /public | |
parent | 62a7197574267404cc7034d78f552c4be0290a25 (diff) |
optimize upload task with wait for dataset id
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/lazar-gui.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/javascripts/lazar-gui.js b/public/javascripts/lazar-gui.js index dcbc4c5..a672de4 100644 --- a/public/javascripts/lazar-gui.js +++ b/public/javascripts/lazar-gui.js @@ -210,7 +210,7 @@ uploadDataset = function(task_uri) { aClient.get(uri, function(res) { var response = JSON.parse(res); if (response['percent'] == 100){ - window.clearInterval(uploadInterval); + clearInterval(uploadInterval); var element = document.getElementById("uploadDataset"); element.parentNode.removeChild(element); }; @@ -224,7 +224,7 @@ renderTask = function(task_uri,id) { var response = JSON.parse(res); //progress(response['percent'],id); if (response['percent'] == 100){ - window.clearInterval(markers[id]); + clearInterval(markers[id]); $("a#downbutton_"+id).removeClass("disabled"); $("a#detailsbutton_"+id).removeClass("disabled"); $("a#downbutton_"+id).removeClass("btn-outline-info"); |