Bugzilla – Attachment 153843 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.09 KB, created by
Pedro Amorim
on 2023-07-24 15:43:18 UTC
(
hide
)
Description:
Bug 34364: Fix progress bar progress update
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-07-24 15:43:18 UTC
Size:
2.09 KB
patch
obsolete
>From 229d4111f0994b67c784e42b9b5fb6999f9c1895 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 > >--- > koha-tmpl/intranet-tmpl/prog/en/includes/job_progress.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/js/job_progress.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_progress.js b/koha-tmpl/intranet-tmpl/prog/js/job_progress.js >index 8da44420a1..dfe03e60e0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/job_progress.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/job_progress.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