[open-ils-commits] r10855 - branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Oct 16 17:55:11 EDT 2008


Author: erickson
Date: 2008-10-16 17:55:06 -0400 (Thu, 16 Oct 2008)
New Revision: 10855

Modified:
   branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/PO.js
Log:
taking advantage of response extractor to check for event

Modified: branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/PO.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/PO.js	2008-10-16 21:54:38 UTC (rev 10854)
+++ branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/PO.js	2008-10-16 21:55:06 UTC (rev 10855)
@@ -20,6 +20,7 @@
     dojo.provide('openils.acq.PO');
     dojo.require('fieldmapper.Fieldmapper');
     dojo.require('fieldmapper.dojoData');
+    dojo.require('openils.Util');
 
     /** Declare the PO class with dojo */
     dojo.declare('openils.acq.PO', null, {
@@ -39,9 +40,11 @@
                 {   params:par, 
                     async: true,
                     oncomplete:function(r) {
-                        var po = r.recv().content();
-                        openils.acq.PO.cache[po.id()] = po;
-                        oncomplete(po);
+                        var po = openils.Util.extractResponse(r)
+                        if(po) {
+                            openils.acq.PO.cache[po.id()] = po;
+                            oncomplete(po);
+                        }
                     }
                 }
             );



More information about the open-ils-commits mailing list