[open-ils-commits] r10055 -
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jul 15 22:49:38 EDT 2008
Author: erickson
Date: 2008-07-15 22:49:36 -0400 (Tue, 15 Jul 2008)
New Revision: 10055
Modified:
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js
Log:
alerting on event. fixed lineitem list creation error
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js 2008-07-16 02:03:55 UTC (rev 10054)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/public/oils/media/ui_js/oils/default/common/jubgrid.js 2008-07-16 02:49:36 UTC (rev 10055)
@@ -11,6 +11,7 @@
dojo.require('openils.acq.Provider');
dojo.require("openils.widget.FundSelector");
dojo.require('openils.editors');
+dojo.require('openils.Event');
dojo.require("openils.widget.OrgUnitFilteringSelect");
dojo.require("fieldmapper.OrgUtils");
@@ -157,7 +158,10 @@
'open-ils.acq.lineitem.delete'],
{ async: true,
params: [openils.User.authtoken, list[idx].id()],
- oncomplete: function(e) {
+ oncomplete: function(r) {
+ var res = r.recv().content();
+ if(openils.Event.parse(res))
+ alert(openils.Event.parse(res));
deleteList(list, ++idx, oncomplete);
}
}
@@ -180,7 +184,7 @@
}
}
if(!deleted)
- keepMe.push(lineitems[id]);
+ keepMe[id] = lineitems[id];
}
JUBGrid.lineitems = keepMe;
More information about the open-ils-commits
mailing list