another fix for auto-hiding patron summary sidebar. Current behavior is for sidebar...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 17 May 2009 06:45:05 +0000 (06:45 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 17 May 2009 06:45:05 +0000 (06:45 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13196 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 6e886ac..f4dcc5c 100644 (file)
@@ -657,9 +657,10 @@ patron.display.prototype = {
             this.controller.view.cmd_patron_bills.setAttribute('style','');
             this.controller.view.cmd_standing_penalties.setAttribute('style','');
             this.controller.view[ btn ].setAttribute('style','background: blue; color: white;');
-            var x = document.getElementById('left_deck_vbox'); 
+            var x = document.getElementById('splitter_grippy'); 
             if (x && ! dont_hide_summary) {
-                x.hidden = true;
+                var first_deck = x.parentNode.previousSibling;
+                if (! first_deck.collapsed) x.doCommand();
             }
         } catch(E) {
             alert(E);