[open-ils-commits] r13197 - trunk/Open-ILS/xul/staff_client/chrome/content/main (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Sun May 17 03:04:18 EDT 2009


Author: phasefx
Date: 2009-05-17 03:04:15 -0400 (Sun, 17 May 2009)
New Revision: 13197

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
Log:
have Circ -> Retrieve Last Patron chose the right patron display (horiz vs vertical summary sidebar)

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js	2009-05-17 06:45:05 UTC (rev 13196)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js	2009-05-17 07:04:15 UTC (rev 13197)
@@ -648,7 +648,8 @@
 						alert(offlineStrings.getString('menu.cmd_retrieve_last_patron.session.error'));
 						return;
 					}
-					var url = obj.url_prefix( urls.XUL_PATRON_DISPLAY ); // + '?id=' + window.escape( obj.data.last_patron ) );
+                    var horizontal_interface = String( obj.data.hash.aous['ui.circ.patron_summary.horizontal'] ) == 'true';
+                    var url = obj.url_prefix( horizontal_interface ? urls.XUL_PATRON_HORIZ_DISPLAY : urls.XUL_PATRON_DISPLAY );
 					obj.set_tab( url, {}, { 'id' : obj.data.last_patron } );
 				}
 			],



More information about the open-ils-commits mailing list