aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorpitu <[email protected]>2017-01-14 19:45:02 -0300
committerpitu <[email protected]>2017-01-14 19:45:02 -0300
commit0f9b05b58827ea56b1836019f932d73dec6d1aa8 (patch)
treed4e62fd5b1012a9f8fe87d9cd5cef12c24e40014 /public/js
parentForgot to send token on upload (diff)
downloadhost.fuwn.me-0f9b05b58827ea56b1836019f932d73dec6d1aa8.tar.xz
host.fuwn.me-0f9b05b58827ea56b1836019f932d73dec6d1aa8.zip
Some fixes here and there
Diffstat (limited to 'public/js')
-rw-r--r--public/js/upload.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/public/js/upload.js b/public/js/upload.js
index 305c40e..a9e4117 100644
--- a/public/js/upload.js
+++ b/public/js/upload.js
@@ -32,7 +32,12 @@ window.onload = function () {
autoProcessQueue: true,
headers: {
'auth': localStorage.token
- }
+ },
+ init: function() {
+ this.on("addedfile", function(file) {
+ document.getElementById('uploads').style.display = 'block';
+ });
+ }
});
// Update the total progress bar