Vandelay: Update Current Type/ID on queue retrieve
authorThomas Berezansky <tsbere@mvlc.org>
Mon, 11 Jun 2012 13:26:17 +0000 (09:26 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 12 Jun 2012 16:31:55 +0000 (12:31 -0400)
Because other parts of the javascript need those values.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>

Open-ILS/web/js/ui/default/vandelay/vandelay.js

index 9988eb2..5b959fc 100644 (file)
@@ -498,7 +498,9 @@ function retrieveQueuedRecords(type, queueId, onload, doExport) {
     selectableGridRecords = {};
 
     if(!type) type = currentType;
+    else currentType = type;
     if(!queueId) queueId = currentQueueId;
+    else currentQueueId = queueId;
     if(!onload) onload = handleRetrieveRecords;
 
     var method = 'open-ils.vandelay.'+type+'_queue.records.retrieve';