From 4e136c1186359bffb7e94fa7758778dd73422411 Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Sat, 6 Aug 2022 23:49:49 -0400 Subject: [PATCH] Grphical progressbar --- .../views/jobs/uploads/upload_files.php | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/www/application/views/jobs/uploads/upload_files.php b/www/application/views/jobs/uploads/upload_files.php index 6ef1e2fb..c1a41c25 100644 --- a/www/application/views/jobs/uploads/upload_files.php +++ b/www/application/views/jobs/uploads/upload_files.php @@ -1,3 +1,90 @@ +
@@ -130,6 +217,7 @@ function fileToUploadChanged(e) { $('#fileToUploadList').append('
Size limit exceeded: ' + fileList[i].name + ' - ' + humanFileSize(fileList[i].size) + ' (' + fileList[i].type + ')'); } else { $('#fileToUploadList').append('
' + fileList[i].name + ' - ' + humanFileSize(fileList[i].size) + ' (' + fileList[i].type + ') '); + $('#fileToUploadList').append('
'); } } } @@ -186,6 +274,8 @@ function uploadajax(ttl,cl) { percent = Math.ceil(event.loaded / event.total * 100); } $('#prog'+cl).text(percent+'%') + $("#file-progress-bar-"+cl).width(percent + '%'); + $("#file-progress-bar-"+cl).html(percent+'%'); }, false); } return xhr;