have Circ -> Retrieve Last Patron chose the right patron display (horiz vs vertical...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 17 May 2009 07:04:15 +0000 (07:04 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 17 May 2009 07:04:15 +0000 (07:04 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13197 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/menu.js

index 138079a..dcbd786 100644 (file)
@@ -648,7 +648,8 @@ main.menu.prototype = {
                                                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 } );
                                }
                        ],