From 9830c562383f26f49f1169bfe4826e83fde6f5df Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 16 Nov 2009 18:39:36 +0000 Subject: [PATCH] fix to prevent auto-bill-display from triggering auto-hide-summary git-svn-id: svn://svn.open-ils.org/ILS/trunk@14923 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/display.js | 5 +++++ Open-ILS/xul/staff_client/server/patron/summary.js | 1 + 2 files changed, 6 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index b67ebc44ea..9c4db7d64e 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -569,6 +569,11 @@ patron.display.prototype = { 'reset_nav_styling' : function(btn,dont_hide_summary) { try { + if (!dont_hide_summary) { dont_hide_summary = false; } + if (this.skip_hide_summary) { + this.skip_hide_summary = false; + dont_hide_summary = true; + } this.controller.view.cmd_patron_checkout.setAttribute('style',''); this.controller.view.cmd_patron_items.setAttribute('style',''); this.controller.view.cmd_patron_edit.setAttribute('style',''); diff --git a/Open-ILS/xul/staff_client/server/patron/summary.js b/Open-ILS/xul/staff_client/server/patron/summary.js index b94f344fa9..33bde75b72 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary.js +++ b/Open-ILS/xul/staff_client/server/patron/summary.js @@ -125,6 +125,7 @@ patron.summary.prototype = { if (xulG) { if (xulG.display_window) { if (! obj.show_billing_tab_on_bills_done_once ) { + xulG.display_window.g.patron.skip_hide_summary = true; xulG.display_window.util.widgets.dispatch('command','cmd_patron_bills'); obj.show_billing_tab_on_bills_done_once = 1; } -- 2.11.0