mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
Cuter file upload progress
This commit is contained in:
parent
f55e9809b7
commit
7c8be0341f
@ -36,17 +36,13 @@
|
||||
|
||||
<div id="uploads">
|
||||
<div id="template" class="columns">
|
||||
<div class="column is-hidden-mobile"></div>
|
||||
<div class="column">
|
||||
<p data-dz-size></p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<p data-dz-name></p>
|
||||
</div>
|
||||
<div class="column">
|
||||
<progress class="progress is-danger" value="100" max="100" data-dz-uploadprogress></progress>
|
||||
<progress class="progress is-small is-danger" value="0" max="100" data-dz-uploadprogress></progress>
|
||||
<p data-dz-errormessage></p>
|
||||
<p class="link"></p>
|
||||
</div>
|
||||
<div class="column is-hidden-mobile"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user