Commit 8c81518c authored by Marc Duez's avatar Marc Duez

database.js : avoid unnecessary reload() after file upload completion

parent 4f98b129
......@@ -445,14 +445,18 @@ Database.prototype = {
/* update upload status */
upload_display: function(){
var flag = false
for (var key in this.upload){
if (!this.upload[key].active){
delete this.upload[key];
this.reload()
if ( document.getElementById("sequence_file_"+key) ){
flag=true;
}
}else{
$("#sequence_file_"+key).html("<span class='loading_seq'></span> <span class='button' onclick='db.cancel_upload("+key+")'>cancel</span>")
}
}
if (flag) this.reload();
},
cancel_upload: function (id) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment