From 3a6d42a49448c8e956421e72fa329b81724d510c Mon Sep 17 00:00:00 2001 From: phasefx Date: Sun, 17 May 2009 08:43:05 +0000 Subject: [PATCH] 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 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index f4dcc5c971..873560563b 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -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); -- 2.11.0