Skip to content

Commit

Permalink
Merge pull request #156 from 0x6368/bugfix/upload-progress-bar
Browse files Browse the repository at this point in the history
Fixed the file upload progress bar
  • Loading branch information
BenediktMKuehne authored Sep 26, 2023
2 parents 8e4cbff + e621543 commit aa29a0f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions embark/static/scripts/fileUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit aa29a0f

Please sign in to comment.