workaround some weird scoping issue
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 28 Dec 2005 08:19:32 +0000 (08:19 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 28 Dec 2005 08:19:32 +0000 (08:19 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2542 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index e26b27b..3125095 100644 (file)
@@ -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
                        }
                }
 
-               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);
                }
 
        ]]>