[open-ils-commits] r10968 - in trunk/Open-ILS/web/js/dojo/openils: . acq
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Oct 29 12:29:56 EDT 2008
Author: erickson
Date: 2008-10-29 12:29:53 -0400 (Wed, 29 Oct 2008)
New Revision: 10968
Modified:
trunk/Open-ILS/web/js/dojo/openils/Util.js
trunk/Open-ILS/web/js/dojo/openils/acq/Fund.js
trunk/Open-ILS/web/js/dojo/openils/acq/PO.js
Log:
changed extractResponse to readResponse becuase it's just quicker to type
Modified: trunk/Open-ILS/web/js/dojo/openils/Util.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/Util.js 2008-10-29 13:40:26 UTC (rev 10967)
+++ trunk/Open-ILS/web/js/dojo/openils/Util.js 2008-10-29 16:29:53 UTC (rev 10968)
@@ -65,7 +65,7 @@
* false, the response content will be null when an event is encountered.
*/
openils.Util.alertEvent = true;
- openils.Util.extractResponse = function(r, eventOk) {
+ openils.Util.readResponse = function(r, eventOk) {
var msg = r.recv();
if(msg == null) return msg;
var val = msg.content();
Modified: trunk/Open-ILS/web/js/dojo/openils/acq/Fund.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/acq/Fund.js 2008-10-29 13:40:26 UTC (rev 10967)
+++ trunk/Open-ILS/web/js/dojo/openils/acq/Fund.js 2008-10-29 16:29:53 UTC (rev 10968)
@@ -20,6 +20,7 @@
dojo.require('fieldmapper.Fieldmapper');
dojo.require('fieldmapper.dojoData');
dojo.require('openils.Event');
+dojo.require('openils.Util');
/** Declare the Fund class with dojo */
dojo.declare('openils.acq.Fund', null, {
@@ -35,10 +36,7 @@
function mkStore(r) {
var msg;
var items = [];
- while(msg = r.recv()) {
- var src = msg.content();
- if(e = openils.Event.parse(src))
- return alert(e);
+ while(msg = openils.Util.readResponse(r)) {
openils.acq.Fund.cache[src.id()] = src;
items.push(src);
}
Modified: trunk/Open-ILS/web/js/dojo/openils/acq/PO.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/acq/PO.js 2008-10-29 13:40:26 UTC (rev 10967)
+++ trunk/Open-ILS/web/js/dojo/openils/acq/PO.js 2008-10-29 16:29:53 UTC (rev 10968)
@@ -40,7 +40,7 @@
{ params:par,
async: true,
oncomplete:function(r) {
- var po = openils.Util.extractResponse(r)
+ var po = openils.Util.readResponse(r)
if(po) {
openils.acq.PO.cache[po.id()] = po;
oncomplete(po);
More information about the open-ils-commits
mailing list