From 12befe851cb6c7a47aaf0937b45204d39affe98e Mon Sep 17 00:00:00 2001 From: phasefx Date: Wed, 28 Dec 2005 08:19:32 +0000 Subject: [PATCH] workaround some weird scoping issue git-svn-id: svn://svn.open-ils.org/ILS/trunk@2542 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/server/patron/barcode_entry.xul | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul b/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul index e26b27b0f9..31250955fe 100644 --- a/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul +++ b/Open-ILS/xul/staff_client/server/patron/barcode_entry.xul @@ -41,6 +41,7 @@ if (!session) { g.error.sdump('D_ERROR','session = ' + session + '\n' + 'g.cgi._keys = ' + g.cgi._keys + '\n' + + 'g.cgi.param("session") = ' + g.cgi.param('session') + '\n' + 'location = ' + location + '\n' + 'location.href = ' + location.href + '\n' ); @@ -52,7 +53,7 @@ 'keypress', function(ev) { if (ev.keyCode == 13 || ev.keyCode == 77) { - spawn(session); + spawn(); } }, false @@ -71,12 +72,12 @@ } } - function spawn(session) { + function spawn() { var tb = document.getElementById('barcode_tb'); var barcode = tb.value; - + location.href = urls.remote_patron_display + '?session=' - + window.escape(session) + '&barcode=' + window.escape(barcode); + + window.escape(g.cgi.param('session')) + '&barcode=' + window.escape(barcode); } ]]> -- 2.43.2