From f982bfc3cac796af1624b45a00d739fe9b704f29 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 20 Apr 2009 19:35:02 +0000 Subject: [PATCH] only one progress dialog git-svn-id: svn://svn.open-ils.org/ILS/trunk@12925 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/acq/picklist/view_list.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/acq/picklist/view_list.js b/Open-ILS/web/js/ui/default/acq/picklist/view_list.js index 3e932d9eb..5c2ad4646 100644 --- a/Open-ILS/web/js/ui/default/acq/picklist/view_list.js +++ b/Open-ILS/web/js/ui/default/acq/picklist/view_list.js @@ -72,7 +72,9 @@ function getDateTimeField(rowIndex, item) { return dojo.date.locale.format(date, {formatLength:'short'}); } function deleteFromGrid() { - progressDialogInd.show(); + progressDialog.setInd(true); + progressDialog.update(); + progressDialog.show(); var list = []; dojo.forEach( plListGrid.getSelectedItems(), @@ -81,7 +83,7 @@ function deleteFromGrid() { plListGrid.store.deleteItem(item); } ); - openils.acq.Picklist.deleteList(list, function(){progressDialogInd.hide();}); + openils.acq.Picklist.deleteList(list, function(){progressDialog.hide();}); } function cloneSelectedPl(fields) { @@ -92,6 +94,7 @@ function cloneSelectedPl(fields) { var plId = plListGrid.store.getValue(item, 'id'); var entryCount = Number(plListGrid.store.getValue(item, 'entry_count')); + progressDialog.setInd(false); progressDialog.show(); progressDialog.update({maximum:entryCount, progress:0}); @@ -152,6 +155,7 @@ function mergeSelectedPl(fields) { } ); + progressDialog.setInd(false); progressDialog.show(); progressDialog.update({maximum:totalLi, progress:0}); -- 2.11.0