From 500ee4c1bf50efc5a9db419d9ad1c722851c29aa Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 28 Jul 2016 16:35:27 +0200 Subject: re-implement progress-bar to work with all browsers --- view/js/mod_cloud.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'view/js') diff --git a/view/js/mod_cloud.js b/view/js/mod_cloud.js index ea1ce35a7..72e6185d6 100644 --- a/view/js/mod_cloud.js +++ b/view/js/mod_cloud.js @@ -88,11 +88,14 @@ function UploadFileSelectHandler(e) { function prepareHtml(f, i) { $("#cloud-index tr:nth-child(2)").after( - '' + - '' + + '' + + '' + '' + f.name + '' + - '' + - '' + formatSizeUnits(f.size) + '' + + '' + + '' + formatSizeUnits(f.size) + '' + + '' + + '' + + '' + '' ); } @@ -166,7 +169,7 @@ function UploadFile(file, idx) { var total = e.totalSize || e.total; // Dynamically update the percentage complete displayed in the file upload list $('#upload-progress-' + idx).html(Math.round(done / total * 100) + '%'); - $('#new-upload-' + idx).css('background-size', Math.round(done / total * 100) + '%'); + $('#upload-progress-bar-' + idx).css('background-size', Math.round(done / total * 100) + '%'); }); xhr.addEventListener('load', function (e) { -- cgit v1.2.3