From: phasefx Date: Sun, 17 May 2009 07:04:15 +0000 (+0000) Subject: have Circ -> Retrieve Last Patron chose the right patron display (horiz vs vertical... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7167f74c2a0ed6512544b8f3b33c78d3bf0449e8;p=Evergreen.git have Circ -> Retrieve Last Patron chose the right patron display (horiz vs vertical summary sidebar) git-svn-id: svn://svn.open-ils.org/ILS/trunk@13197 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index 138079a77e..dcbd7863c4 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -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 } ); } ],