make sure you wait
This commit is contained in:
@@ -20,6 +20,9 @@ function UploadFile(file) {
|
|||||||
xhr.upload.addEventListener("progress", function(e) {
|
xhr.upload.addEventListener("progress", function(e) {
|
||||||
var pc = parseInt((e.loaded / e.total * 100));
|
var pc = parseInt((e.loaded / e.total * 100));
|
||||||
o.innerHTML = "Uploading: " + pc + "%";
|
o.innerHTML = "Uploading: " + pc + "%";
|
||||||
|
if (pc == 100) {
|
||||||
|
o.innerHTML = "Finishing up... wait...";
|
||||||
|
}
|
||||||
// upload works, hide button
|
// upload works, hide button
|
||||||
document.getElementById("list_upload_button").hidden = true;
|
document.getElementById("list_upload_button").hidden = true;
|
||||||
}, false);
|
}, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user