Browse Source

double % issue + leave space

tags/v1.0.0
Uvis Grinfelds 9 years ago
parent
commit
28e1ad8c8b
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      transfersh-web/scripts/main.js

+ 3
- 2
transfersh-web/scripts/main.js View File

@@ -24,7 +24,7 @@ $(document).ready(function() {
if (queue.length==0)
return;

return 'There are still ' + queue.length + 'files being uploaded.';
return 'There are still ' + queue.length + ' files being uploaded.';
});

function upload(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) {


Loading…
Cancel
Save