From: Galen Charlton Date: Tue, 11 Aug 2015 18:06:20 +0000 (+0000) Subject: LP#1482400: smooth out updating of the progress bar X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fgmcharlt%2Flp1482400_better_po_activation_progress_indication;p=working%2FEvergreen.git LP#1482400: smooth out updating of the progress bar Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index dfda02dd10..5d0a841612 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -3272,6 +3272,7 @@ function AcqLiTable() { } this._updateProgressDialog = function(resp) { + progressDialog.update({ "progress": (resp.progress / resp.total) * 100 }); var keys = ['li', 'vqbr', 'bibs', 'lid', 'debits_accrued', 'copies']; for (var i = 0; i < keys.length; i++) { if (resp[keys[i]] > (this.batchProgress[keys[i]] || 0)) { @@ -3281,14 +3282,6 @@ function AcqLiTable() { [ resp[keys[i]] ] ) ); - // for asset creation, three main phases: - // Vandelay, bibs, then copies - if (keys[i] == 'bibs') { - progressDialog.update({ "progress": 33}); - } else if (keys[i] == "copies") { - progressDialog.update({ "progress": 67}); - } - break; } } this.batchProgress = resp;