1
0
mirror of https://github.com/dutchcoders/transfer.sh.git synced 2020-11-18 19:53:40 -08:00

double % issue + leave space

This commit is contained in:
Uvis Grinfelds 2014-11-13 19:45:09 +01:00
parent 6c6c7225b2
commit 28e1ad8c8b

View File

@ -41,7 +41,8 @@ $(document).ready(function() {
var pc = parseInt((e.loaded / e.total * 100));
$('.upload-progress', $(li)).show();
$('.upload-progress .bar', $(li)).css('width', pc + "%");
$('.upload-progress span ').empty().append(pc + "%");
$('.upload-progress span ', $(li)).empty().append(pc + "%");
}, false);
xhr.onreadystatechange = function(e) {