Bugzilla – Attachment 154414 Details for
Bug 34364
Background job - Fix visual progress of progress bar
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 34364: Fix progress bar progress update
Bug-34364-Fix-progress-bar-progress-update.patch (text/plain), 2.14 KB, created by
Lucas Gass (lukeg)
on 2023-08-14 17:06:19 UTC
(
hide
)
Description:
Bug 34364: Fix progress bar progress update
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2023-08-14 17:06:19 UTC
Size:
2.14 KB
patch
obsolete
>From 224ee796252505d595f86266f217207933012c4b Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Mon, 24 Jul 2023 15:42:57 +0000 >Subject: [PATCH] Bug 34364: Fix progress bar progress update > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/job_progress.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/js/job_progess.js | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/job_progress.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/job_progress.inc >index 567d814418..14ecb96083 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/job_progress.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/job_progress.inc >@@ -1,5 +1,5 @@ > <div class="progress"> >- <div id="progress-bar-[% job_id | html %]" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:100%"> >+ <div id="progress-bar-[% job_id | html %]" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"> > <span id="job-percent-[% job_id | html %]">0</span>% <span id="job-status-[% job_id | html %]"></span> > </div> > </div> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/job_progess.js b/koha-tmpl/intranet-tmpl/prog/js/job_progess.js >index 8da44420a1..dfe03e60e0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/job_progess.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/job_progess.js >@@ -12,7 +12,8 @@ function updateProgress(job_id, callback) { > const percent = progress > 0 ? ( progress / size ) * 100 : 0; > $('#job-percent-' + job_id).text(percent.toFixed(2)); > $('#job-status-' + job_id).text(JOB_PROGRESS_STARTED); >- $('#progress-bar-' + job_id).attr('aria-valuenow', percent).css("width", "percent+%"); >+ $('#progress-bar-' + job_id).attr('aria-valuenow', percent); >+ $('#progress-bar-' + job_id).width(Math.floor(percent) +"%"); > } else if ( job.status == "finished" ) { > $('#job-percent-' + job_id).text(100); > $('#job-status-' + job_id).text(JOB_PROGRESS_FINISHED); >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 34364
:
153843
| 154414