only one progress dialog
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 20 Apr 2009 19:35:02 +0000 (19:35 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 20 Apr 2009 19:35:02 +0000 (19:35 +0000)
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

index 3e932d9..5c2ad46 100644 (file)
@@ -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});