fix to prevent auto-bill-display from triggering auto-hide-summary
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 16 Nov 2009 18:39:36 +0000 (18:39 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 16 Nov 2009 18:39:36 +0000 (18:39 +0000)
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
Open-ILS/xul/staff_client/server/patron/summary.js

index b67ebc4..9c4db7d 100644 (file)
@@ -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','');
index b94f344..33bde75 100644 (file)
@@ -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;
                                                         }