From 95ad3a12178a722083f701c45fd38445eb39ed67 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 15 Oct 2008 13:00:22 +0000 Subject: [PATCH] checking event-iness of reponse git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@10835 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/acq/Fund.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/openils/acq/Fund.js b/Open-ILS/web/js/dojo/openils/acq/Fund.js index 0c609f1710..9ed523bd3f 100644 --- a/Open-ILS/web/js/dojo/openils/acq/Fund.js +++ b/Open-ILS/web/js/dojo/openils/acq/Fund.js @@ -19,6 +19,7 @@ dojo._hasResource['openils.acq.Fund'] = true; 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 @@ openils.acq.Fund.createStore = function(onComplete, limitPerm) { 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)); } -- 2.11.0