From 0665a63a3ee241f2e2a2183d208068c54a43978e Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 6 Dec 2005 05:24:41 +0000 Subject: [PATCH] sometimes patron_display?session=undefined happens git-svn-id: svn://svn.open-ils.org/ILS/trunk@2237 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/server/patron/patron_barcode_entry.xul | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/patron_barcode_entry.xul b/Open-ILS/xul/staff_client/server/patron/patron_barcode_entry.xul index 1c4840bf36..2481a08d8a 100644 --- a/Open-ILS/xul/staff_client/server/patron/patron_barcode_entry.xul +++ b/Open-ILS/xul/staff_client/server/patron/patron_barcode_entry.xul @@ -37,13 +37,14 @@ g.error.sdump('D_TRACE','my_init() for patron_display.xul'); g.cgi = new CGI(); + var session = g.cgi.param('session'); var tb = document.getElementById('barcode_tb'); tb.addEventListener( 'keypress', function(ev) { if (ev.keyCode == 13 || ev.keyCode == 77) { - spawn(g.cgi.param('session')); + spawn(session); } }, false -- 2.43.2