Skip to content

Commit

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


function uploadFile() {

var spinnerdiv = document.getElementById("spinner");
spinnerdiv.classList.add("d-flex");
spinnerdiv.style.removeProperty("display");
$("#spinner").addClass("d-flex").show();
i = i+1;
let formData = new FormData();
Expand Down Expand Up @@ -361,7 +365,8 @@ function uploadFile() {
});
}
});
$("#spinner").removeClass("d-flex").hide();
spinnerdiv.classList.remove("d-flex");
spinnerdiv.style.setProperty("display", "none");

}

Expand Down

0 comments on commit e87c9cc

Please sign in to comment.