diff options
Diffstat (limited to 'www/js/utils.js')
-rw-r--r-- | www/js/utils.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/www/js/utils.js b/www/js/utils.js index 7e7a656..a2a28b2 100644 --- a/www/js/utils.js +++ b/www/js/utils.js @@ -146,10 +146,8 @@ jQuery.fn.sort = function() { }; function updateProgressBar($el, upload) { - if(upload.uploadprogress.progress < 99) { - var bytes_str = Number((upload.uploadprogress.bytesSent/1024)/1024).toFixed(1) + " von " + - Number((upload.uploadprogress.total/1024)/1024).toFixed(1) + " MB"; - $el.find('.file-bytes').text(bytes_str); + if(upload.uploadprogress.progress_step < 2) { + $el.find('.file-bytes').text(Number(upload.uploadprogress.progress).toFixed(2) + '%'); $el.find('.progress .progress-bar').css("width", upload.uploadprogress.progress + "%"); } else { $el.find('.file-bytes').text('importiere...'); |