From: phasefx Date: Sun, 17 May 2009 08:43:05 +0000 (+0000) Subject: only do the auto-hiding of patron summary once per invocation of the interface. ... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3a6d42a49448c8e956421e72fa329b81724d510c;p=Evergreen.git 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 --- 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);