From 697ede0d5ed00cc4d7f14aadb4254448480fd25f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 27 Mar 2017 17:18:22 -0300 Subject: [PATCH] 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 Signed-off-by: Nick Clemens --- 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