[open-ils-commits] r10484 - trunk/Open-ILS/web/vandelay

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Aug 29 18:20:17 EDT 2008


Author: erickson
Date: 2008-08-29 18:20:12 -0400 (Fri, 29 Aug 2008)
New Revision: 10484

Modified:
   trunk/Open-ILS/web/vandelay/vandelay.js
Log:
passing around the queue object, not the id

Modified: trunk/Open-ILS/web/vandelay/vandelay.js
===================================================================
--- trunk/Open-ILS/web/vandelay/vandelay.js	2008-08-29 22:19:40 UTC (rev 10483)
+++ trunk/Open-ILS/web/vandelay/vandelay.js	2008-08-29 22:20:12 UTC (rev 10484)
@@ -76,11 +76,11 @@
   * Tells vendelay to pull a batch of records from the cache and explode them
   * out into the vandelay tables
   */
-function processSpool(key, queueId, type, onload) {
+function processSpool(key, queue, type, onload) {
     fieldmapper.standardRequest(
         ['open-ils.vandelay', 'open-ils.vandelay.'+type+'.process_spool'],
         {   async: true,
-            params: [authtoken, key, queueId],
+            params: [authtoken, key, queue.id()],
             oncomplete : function(r) {
                 var queue = r.recv().content();
                 if(e = openils.Event.parse(queue)) 
@@ -98,18 +98,18 @@
     var queueName = dijit.byId('vl-queue-name').getValue();
     var recordType = dijit.byId('vl-record-type').getValue();
 
-    var currentQueueId = null;
+    var currentQueue = null;
 
     var handleProcessSpool = function() {
         alert('records uploaded and spooled');
     }
 
     var handleUploadMARC = function(key) {
-        processSpool(key, currentQueueId, recordType, handleProcessSpool);
+        processSpool(key, currentQueue, recordType, handleProcessSpool);
     };
 
-    var handleCreateQueue = function(queueId) {
-        currentQueueId = queueId;
+    var handleCreateQueue = function(queue) {
+        currentQueue = queue;
         uploadMARC(handleUploadMARC);
     };
 



More information about the open-ils-commits mailing list