lp1028906 : Vandelay inspect queue page load repair collab/berick/vandelay-inspect-q-test-repair
authorBill Erickson <berick@esilibrary.com>
Wed, 25 Jul 2012 13:14:06 +0000 (09:14 -0400)
committerBill Erickson <berick@esilibrary.com>
Wed, 25 Jul 2012 13:14:06 +0000 (09:14 -0400)
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>
Open-ILS/web/js/ui/default/vandelay/vandelay.js

index 5b959fc..2728b4c 100644 (file)
@@ -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();