"add message during upload"
This commit is contained in:
parent
a3aeb75f5a
commit
4a2ceafd52
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/conf/config.php
|
29
script.js
29
script.js
@ -28,19 +28,20 @@ function copytoclipboard()
|
|||||||
|
|
||||||
function ajax_file_upload(file_obj)
|
function ajax_file_upload(file_obj)
|
||||||
{
|
{
|
||||||
$.ajax(
|
var divresponse = document.getElementById('divresponse');
|
||||||
{
|
divresponse.innerHTML = "Uploading file..." ;
|
||||||
type: 'PUT',
|
$.ajax(
|
||||||
url: 'index.php',
|
{
|
||||||
contentType: false,
|
type: 'PUT',
|
||||||
processData: false,
|
url: 'index.php',
|
||||||
data: file_obj,
|
contentType: false,
|
||||||
success:function(response)
|
processData: false,
|
||||||
{;
|
data: file_obj,
|
||||||
var divresponse = document.getElementById('divresponse');
|
success:function(response)
|
||||||
divresponse.innerHTML = response ;
|
{;
|
||||||
document.getElementById('copytoclipboard').style.visibility = "visible";
|
divresponse.innerHTML = response ;
|
||||||
}
|
document.getElementById('copytoclipboard').style.visibility = "visible";
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user