Add Indication for upload
This commit is contained in:
@@ -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")
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user