From: pines Date: Wed, 30 Aug 2006 19:08:33 +0000 (+0000) Subject: oops, no xulG with group manipulation interface X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5e12cc75ffb62408fd22fc883a5243dcf5428058;p=Evergreen.git oops, no xulG with group manipulation interface git-svn-id: svn://svn.open-ils.org/ILS/trunk@5784 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/summary.xul b/Open-ILS/xul/staff_client/server/patron/summary.xul index 700881c01b..cb33a1f873 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary.xul +++ b/Open-ILS/xul/staff_client/server/patron/summary.xul @@ -44,10 +44,15 @@ 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'), } );