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