[open-ils-commits] r12925 - trunk/Open-ILS/web/js/ui/default/acq/picklist (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Apr 20 15:35:07 EDT 2009
Author: erickson
Date: 2009-04-20 15:35:02 -0400 (Mon, 20 Apr 2009)
New Revision: 12925
Modified:
trunk/Open-ILS/web/js/ui/default/acq/picklist/view_list.js
Log:
only one progress dialog
Modified: trunk/Open-ILS/web/js/ui/default/acq/picklist/view_list.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/picklist/view_list.js 2009-04-20 19:34:45 UTC (rev 12924)
+++ trunk/Open-ILS/web/js/ui/default/acq/picklist/view_list.js 2009-04-20 19:35:02 UTC (rev 12925)
@@ -72,7 +72,9 @@
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 @@
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 @@
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 @@
}
);
+ progressDialog.setInd(false);
progressDialog.show();
progressDialog.update({maximum:totalLi, progress:0});
More information about the open-ils-commits
mailing list