[open-ils-commits] r9928 -
branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jun 25 12:59:14 EDT 2008
Author: erickson
Date: 2008-06-25 12:59:12 -0400 (Wed, 25 Jun 2008)
New Revision: 9928
Modified:
branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Picklist.js
Log:
added ability to override lineitem retrieval arguments
Modified: branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Picklist.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Picklist.js 2008-06-25 16:34:47 UTC (rev 9927)
+++ branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Picklist.js 2008-06-25 16:59:12 UTC (rev 9928)
@@ -26,8 +26,9 @@
/** Declare the Picklist class with dojo */
dojo.declare('openils.acq.Picklist', null, {
- constructor: function (pl_id, onComplete) {
+ constructor: function (pl_id, onComplete, args) {
var pl_this = this; // 'this' doesn't exist inside callbacks
+ var liArgs = args.liArgs || {flesh_attrs:1, clear_marc:1};
var mkStore = function (r) {
var storeData;
var msg;
@@ -65,7 +66,7 @@
fieldmapper.standardRequest(
['open-ils.acq', 'open-ils.acq.lineitem.picklist.retrieve'],
{ async: true,
- params: [openils.User.authtoken, pl_id, {flesh_attrs:1, clear_marc:1}],
+ params: [openils.User.authtoken, pl_id, liArgs],
oncomplete: mkStore
});
},
More information about the open-ils-commits
mailing list