aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorPitu <[email protected]>2017-01-18 22:08:59 -0300
committerPitu <[email protected]>2017-01-18 22:08:59 -0300
commit7c8be0341ff1378662dc7617889356ce9572dd60 (patch)
treea7a9c30eabfb5b8d6b028a1ca48db9591991c3f1 /public
parentYep, multi-domains is a thing (diff)
downloadhost.fuwn.me-7c8be0341ff1378662dc7617889356ce9572dd60.tar.xz
host.fuwn.me-7c8be0341ff1378662dc7617889356ce9572dd60.zip
Cuter file upload progress
Diffstat (limited to 'public')
-rw-r--r--public/js/upload.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/js/upload.js b/public/js/upload.js
index 2638ef8..d6d9b9d 100644
--- a/public/js/upload.js
+++ b/public/js/upload.js
@@ -109,7 +109,8 @@ upload.prepareDropzone = function(){
// Update the total progress bar
dropzone.on('uploadprogress', function(file, progress) {
- file.previewElement.querySelector('.progress').style.width = progress + '%';
+ file.previewElement.querySelector('.progress').setAttribute('value', progress);
+ file.previewElement.querySelector('.progress').innerHTML = progress + '%';
});
dropzone.on('success', function(file, response) {