MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

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

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

parent 4f98b129
...@@ -445,14 +445,18 @@ Database.prototype = { ...@@ -445,14 +445,18 @@ Database.prototype = {
/* update upload status */ /* update upload status */
upload_display: function(){ upload_display: function(){
var flag = false
for (var key in this.upload){ for (var key in this.upload){
if (!this.upload[key].active){ if (!this.upload[key].active){
delete this.upload[key]; delete this.upload[key];
this.reload() if ( document.getElementById("sequence_file_"+key) ){
flag=true;
}
}else{ }else{
$("#sequence_file_"+key).html("<span class='loading_seq'></span> <span class='button' onclick='db.cancel_upload("+key+")'>cancel</span>") $("#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) { 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