[open-ils-commits] r9575 -
branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue May 13 10:17:23 EDT 2008
Author: erickson
Date: 2008-05-13 10:17:21 -0400 (Tue, 13 May 2008)
New Revision: 9575
Modified:
branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Fund.js
Log:
added fund_allocation create code
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-05-13 14:16:52 UTC (rev 9574)
+++ branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Fund.js 2008-05-13 14:17:21 UTC (rev 9575)
@@ -75,6 +75,26 @@
};
+openils.acq.Fund.createAllocation = function(fields, onCreateComplete) {
+ var alloc = new acqfa()
+ for(var field in fields)
+ alloc[field](fields[field]);
+ fieldmapper.standardRequest(
+ ['open-ils.acq', 'open-ils.acq.fund_allocation.create'],
+ {
+ async: true,
+ params: [openils.User.authtoken, alloc],
+ oncomplete: function(r) {
+ var msg = r.recv();
+ var id = msg.content();
+ if(onCreateComplete)
+ onCreateComplete(id);
+ }
+ }
+ );
+};
+
+
/**
* Synchronous fund retrievel method
*/
More information about the open-ils-commits
mailing list