From: erickson Date: Fri, 29 Aug 2008 22:20:12 +0000 (+0000) Subject: passing around the queue object, not the id X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c72985011014d1042d270595ead7050bad7632d9;p=Evergreen.git passing around the queue object, not the id git-svn-id: svn://svn.open-ils.org/ILS/trunk@10484 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/vandelay/vandelay.js b/Open-ILS/web/vandelay/vandelay.js index 327a1bf679..548f67f1ce 100644 --- a/Open-ILS/web/vandelay/vandelay.js +++ b/Open-ILS/web/vandelay/vandelay.js @@ -76,11 +76,11 @@ function createQueue(queueName, type, onload) { * 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 @@ function batchUpload() { 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); };