backporting part of 14606, disabling the auto-hide patron summary behavior by default
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Oct 2009 16:00:17 +0000 (16:00 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Oct 2009 16:00:17 +0000 (16:00 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@14609 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 35aadb9..d7606e7 100644 (file)
@@ -665,8 +665,9 @@ 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 auto_hide_patron_sidebar = String( this.OpenILS.data.hash.aous['circ.auto_hide_patron_summary'] ) == 'true';
             var x = document.getElementById('splitter_grippy'); 
-            if (x && ! dont_hide_summary) {
+            if (x && auto_hide_patron_sidebar && ! dont_hide_summary) {
                 if (! this.summary_hidden_once_already ) {
                     var first_deck = x.parentNode.previousSibling;
                     if (! first_deck.collapsed) x.doCommand();