Skip to content

Commit

Permalink
add spinner to upload
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed May 27, 2024
1 parent 7226893 commit 9656859
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/views/inspectionform.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ function trashSnap() {


function uploadFile() {
$("#spinner").addClass("d-flex").show();
i = i+1;
let formData = new FormData();
const fileInput = document.getElementById("fileupload");
Expand Down Expand Up @@ -360,7 +361,7 @@ function uploadFile() {
});
}
});

$("#spinner").removeClass("d-flex").hide();

}

Expand Down

0 comments on commit 9656859

Please sign in to comment.