From 0b1d3ca56e7113be185f869a632fd8e49912d040 Mon Sep 17 00:00:00 2001
From: Bill Erickson <berick@esilibrary.com>
Date: Wed, 25 Jul 2012 09:14:06 -0400
Subject: [PATCH] lp1028906 : Vandelay inspect queue page load repair

This is the result of a bug in the code that went unnoticed until
c108746532548fd8d3fadd15736375a57208d485 (CGI.js additions).  This patch
repairs how Vandelay checks the CGI param to determine if it should
load the 'inspectq' page on load.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
---
 Open-ILS/web/js/ui/default/vandelay/vandelay.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Open-ILS/web/js/ui/default/vandelay/vandelay.js b/Open-ILS/web/js/ui/default/vandelay/vandelay.js
index 5b959fc695..2728b4c53f 100644
--- a/Open-ILS/web/js/ui/default/vandelay/vandelay.js
+++ b/Open-ILS/web/js/ui/default/vandelay/vandelay.js
@@ -344,7 +344,7 @@ function runStartupCommands() {
     dojo.style('vl-nav-bar', 'visibility', 'visible');
     if(currentQueueId)
         return retrieveQueuedRecords(currentType, currentQueueId, handleRetrieveRecords);
-    if (cgi.param('page', 'inspectq'))
+    if (cgi.param('page') == 'inspectq')
         return vlShowQueueSelect();
         
     vlShowUploadForm();
-- 
2.11.0