only do the auto-hiding of patron summary once per invocation of the interface. ...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 17 May 2009 08:43:05 +0000 (08:43 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 17 May 2009 08:43:05 +0000 (08:43 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13199 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/display.js

index f4dcc5c..8735605 100644 (file)
@@ -659,8 +659,11 @@ patron.display.prototype = {
             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);