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 |
- |
|
|