[open-ils-commits] r13199 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Sun May 17 04:43:09 EDT 2009


Author: phasefx
Date: 2009-05-17 04:43:05 -0400 (Sun, 17 May 2009)
New Revision: 13199

Modified:
   trunk/Open-ILS/xul/staff_client/server/patron/display.js
Log:
only do the auto-hiding of patron summary once per invocation of the interface.  IOW, if staff wants to unhide the summary after it collapses, let it stay unhidden even when further navigating the display

Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js	2009-05-17 07:24:26 UTC (rev 13198)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js	2009-05-17 08:43:05 UTC (rev 13199)
@@ -659,8 +659,11 @@
             this.controller.view[ btn ].setAttribute('style','background: blue; color: white;');
             var x = document.getElementById('splitter_grippy'); 
             if (x && ! dont_hide_summary) {
-                var first_deck = x.parentNode.previousSibling;
-                if (! first_deck.collapsed) x.doCommand();
+                if (! this.summary_hidden_once_already ) {
+                    var first_deck = x.parentNode.previousSibling;
+                    if (! first_deck.collapsed) x.doCommand();
+                    this.summary_hidden_once_already = true;
+                }
             }
         } catch(E) {
             alert(E);



More information about the open-ils-commits mailing list