oops, no xulG with group manipulation interface
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Aug 2006 19:08:33 +0000 (19:08 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Aug 2006 19:08:33 +0000 (19:08 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5784 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 700881c..cb33a1f 100644 (file)
 
                                g.cgi = new CGI();
 
+                               var patron_id = g.cgi.param('id'); 
+                               if (typeof window.xulG == 'object' && typeof window.xulG.id != 'undefined') patron_id = window.xulG.id;
+                               var patron_bc = g.cgi.param('barcode'); 
+                               if (typeof window.xulG == 'object' && typeof window.xulG.barcode != 'undefined') patron_bc = window.xulG.barcode;
+
                                JSAN.use('patron.summary'); g.summary = new patron.summary();
                                g.summary.init( { 
-                                       'barcode' : g.cgi.param('barcode') || xulG.barcode, 
-                                       'id' : g.cgi.param('id')|| xulG.id, 
+                                       'barcode' : patron_bc,
+                                       'id' : patron_id,
                                        'show_name' : g.cgi.param('show_name'),
                                } );