View | Details | Raw Unified | Return to bug 34364
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/job_progress.inc (-1 / +1 lines)
Lines 1-5 Link Here
1
<div class="progress">
1
<div class="progress">
2
    <div id="progress-bar-[% job_id | html %]" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:100%">
2
    <div id="progress-bar-[% job_id | html %]" class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
3
        <span id="job-percent-[% job_id | html %]">0</span>% <span id="job-status-[% job_id | html %]"></span>
3
        <span id="job-percent-[% job_id | html %]">0</span>% <span id="job-status-[% job_id | html %]"></span>
4
    </div>
4
    </div>
5
</div>
5
</div>
(-)a/koha-tmpl/intranet-tmpl/prog/js/job_progress.js (-2 / +2 lines)
Lines 12-18 function updateProgress(job_id, callback) { Link Here
12
            const percent = progress > 0 ? ( progress / size ) * 100 : 0;
12
            const percent = progress > 0 ? ( progress / size ) * 100 : 0;
13
            $('#job-percent-' + job_id).text(percent.toFixed(2));
13
            $('#job-percent-' + job_id).text(percent.toFixed(2));
14
            $('#job-status-' + job_id).text(JOB_PROGRESS_STARTED);
14
            $('#job-status-' + job_id).text(JOB_PROGRESS_STARTED);
15
            $('#progress-bar-' + job_id).attr('aria-valuenow', percent).css("width", "percent+%");
15
            $('#progress-bar-' + job_id).attr('aria-valuenow', percent);
16
            $('#progress-bar-' + job_id).width(Math.floor(percent) +"%");
16
        } else if ( job.status == "finished" ) {
17
        } else if ( job.status == "finished" ) {
17
            $('#job-percent-' + job_id).text(100);
18
            $('#job-percent-' + job_id).text(100);
18
            $('#job-status-' + job_id).text(JOB_PROGRESS_FINISHED);
19
            $('#job-status-' + job_id).text(JOB_PROGRESS_FINISHED);
19
- 

Return to bug 34364