From 1b96932589be9e0973936483de85f3a9206449d6 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 11 Aug 2015 18:06:20 +0000 Subject: [PATCH] LP#1482400: smooth out updating of the progress bar Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/acq/common/li_table.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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; -- 2.11.0