Bugzilla – Attachment 61841 Details for
Bug 18340
Progress bar length is wrong
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 18340: Fix progress bar length
SIGNED-OFF-Bug-18340-Fix-progress-bar-length.patch (text/plain), 1.58 KB, created by
Josef Moravec
on 2017-04-04 14:13:27 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 18340: Fix progress bar length
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2017-04-04 14:13:27 UTC
Size:
1.58 KB
patch
obsolete
>From ff9c3f83c3cecded6b4618f7167e25ee8d15ef05 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 27 Mar 2017 17:18:22 -0300 >Subject: [PATCH] [SIGNED-OFF] Bug 18340: Fix progress bar length > >The progress bar (for background jobs) should be fully filled when 100% >is hit, right? :) >It has been introduced quite long time ago when the size of the progress >bar has been changed from 150 to 200px, and the code has been >refactored. > >Test plan: >Launch a big modification/deletion of records/items in a batch. >You should see the progress bar progressing to 100 and reach 100! > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > koha-tmpl/intranet-tmpl/prog/js/background-job-progressbar.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/background-job-progressbar.js b/koha-tmpl/intranet-tmpl/prog/js/background-job-progressbar.js >index f8640c9..cc08618 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/background-job-progressbar.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/background-job-progressbar.js >@@ -11,7 +11,7 @@ function updateJobProgress() { > var percentage = json.job_status == 'completed' ? 100 : > json.job_size > 0 ? Math.floor(100 * json.progress / json.job_size) : > 100; >- var bgproperty = (parseInt(percentage/2)*3-300)+"px 0px"; >+ var bgproperty = (parseInt(percentage*2)-300)+"px 0px"; > $("#jobprogress").css("background-position",bgproperty); > $("#jobprogresspercent").text(percentage); > >-- >2.1.4
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 18340
:
61647
|
61841
|
63334