[open-ils-commits] r10835 -
branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Oct 15 09:00:23 EDT 2008
Author: erickson
Date: 2008-10-15 09:00:22 -0400 (Wed, 15 Oct 2008)
New Revision: 10835
Modified:
branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Fund.js
Log:
checking event-iness of reponse
Modified: branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Fund.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Fund.js 2008-10-15 12:59:39 UTC (rev 10834)
+++ branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Fund.js 2008-10-15 13:00:22 UTC (rev 10835)
@@ -19,6 +19,7 @@
dojo.provide('openils.acq.Fund');
dojo.require('fieldmapper.Fieldmapper');
dojo.require('fieldmapper.dojoData');
+dojo.require('openils.Event');
/** Declare the Fund class with dojo */
dojo.declare('openils.acq.Fund', null, {
@@ -36,10 +37,12 @@
var items = [];
while(msg = r.recv()) {
var src = msg.content();
+ if(e = openils.Event.parse(src))
+ return alert(e);
openils.acq.Fund.cache[src.id()] = src;
items.push(src);
}
- openils.acq.Fund._cachecomplete = true;
+ openils.acq.Fund._cachecomplete = true;
onComplete(acqf.toStoreData(items));
}
More information about the open-ils-commits
mailing list