Skip to content

Commit

Permalink
Fixed the file upload progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
0x6368 committed Sep 26, 2023
1 parent 8e4cbff commit e621543
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 e621543

Please sign in to comment.