diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b16c889 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/conf/config.php \ No newline at end of file diff --git a/script.js b/script.js index 571cc77..2ee7378 100644 --- a/script.js +++ b/script.js @@ -28,19 +28,20 @@ function copytoclipboard() function ajax_file_upload(file_obj) { - $.ajax( - { - type: 'PUT', - url: 'index.php', - contentType: false, - processData: false, - data: file_obj, - success:function(response) - {; - var divresponse = document.getElementById('divresponse'); - divresponse.innerHTML = response ; - document.getElementById('copytoclipboard').style.visibility = "visible"; - } - }); + var divresponse = document.getElementById('divresponse'); + divresponse.innerHTML = "Uploading file..." ; + $.ajax( + { + type: 'PUT', + url: 'index.php', + contentType: false, + processData: false, + data: file_obj, + success:function(response) + {; + divresponse.innerHTML = response ; + document.getElementById('copytoclipboard').style.visibility = "visible"; + } + }); }