[open-ils-commits] r9603 -
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/picklist
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed May 14 13:55:20 EDT 2008
Author: erickson
Date: 2008-05-14 13:55:12 -0400 (Wed, 14 May 2008)
New Revision: 9603
Modified:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/picklist/view_list.js
Log:
repaired picklist delete bug
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/picklist/view_list.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/picklist/view_list.js 2008-05-14 17:01:47 UTC (rev 9602)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/acq/picklist/view_list.js 2008-05-14 17:55:12 UTC (rev 9603)
@@ -61,8 +61,8 @@
function deleteFromGrid() {
var list = []
var selected = plListGrid.selection.getSelected();
- alert('selected = ' + selected);
- for(var rowIdx in selected) {
+ for(var idx = 0; idx < selected.length; idx++) {
+ var rowIdx = selected[idx];
var id = plListGrid.model.getRow(rowIdx).id;
for(var i = 0; i < plList.length; i++) {
var pl = plList[i];
@@ -72,12 +72,6 @@
}
}
}
- alert('deleting: ' + list);
- var names = [];
- for(var i = 0; i < plList.length; i++)
- names.push(plList[i].name());
- alert('keeping ' + names);
- return;
openils.acq.Picklist.deleteList(list, function() { makeGridFromList(); });
}
More information about the open-ils-commits
mailing list