Add Indication for upload

This commit is contained in:
2019-05-27 15:49:17 +05:30
parent a81c26b5eb
commit 9655281a78

View File

@@ -130,6 +130,7 @@ $(document).ready(()=>{
$("#fileLabel").html(e.target.files[0].name); $("#fileLabel").html(e.target.files[0].name);
}) })
$(".done-upload").click(()=>{ $(".done-upload").click(()=>{
$("#fileLabel").html("Uploading")
$("#upload-directory").val(currDir.loc) $("#upload-directory").val(currDir.loc)
$.ajax("/files/upload",{ $.ajax("/files/upload",{
method: 'post', method: 'post',
@@ -139,6 +140,7 @@ $(document).ready(()=>{
success:msg=>{ success:msg=>{
alert("Uploaded") alert("Uploaded")
closeUploadWindow(); closeUploadWindow();
populateContents();
}, },
error:msg=>alert("Error") error:msg=>alert("Error")
}) })