sometimes patron_display?session=undefined happens
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 6 Dec 2005 05:24:41 +0000 (05:24 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 6 Dec 2005 05:24:41 +0000 (05:24 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2237 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/patron_barcode_entry.xul

index 1c4840b..2481a08 100644 (file)
                                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