From e6215434fb0233487258b619a131e40d6838aac6 Mon Sep 17 00:00:00 2001 From: Christian Bieg Date: Tue, 26 Sep 2023 12:38:58 +0200 Subject: [PATCH] Fixed the file upload progress bar --- embark/static/scripts/fileUpload.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/embark/static/scripts/fileUpload.js b/embark/static/scripts/fileUpload.js index 06ff4ce7b..fe2fd3247 100644 --- a/embark/static/scripts/fileUpload.js +++ b/embark/static/scripts/fileUpload.js @@ -107,11 +107,7 @@ $(window).bind("load", function() { function saveFiles() { "use strict"; var progressBar = document.getElementById("progress-wrapper"); - if (progressBar.style.display == "none") { - progressBar.style.display = "block"; - } else { - progressBar.style.display = "none"; - } + progressBar.style.display = "block"; var fileData = document.getElementById('file-input').files; var formData = new FormData(); for (let index = 0; index < fileData.length; index++) {