[open-ils-commits] r12428 - trunk/Open-ILS/xul/staff_client/server/patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Mar 5 13:01:29 EST 2009
Author: phasefx
Date: 2009-03-05 13:01:26 -0500 (Thu, 05 Mar 2009)
New Revision: 12428
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/display.js
Log:
auto-hide summary when navigating through the patron display. We may want an org setting for this
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js 2009-03-05 17:51:40 UTC (rev 12427)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js 2009-03-05 18:01:26 UTC (rev 12428)
@@ -37,7 +37,7 @@
function spawn_checkout_interface() {
try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible( document.getElementById("PatronNavBar_checkout" ) ); } catch(E) {};
- obj.reset_nav_styling('cmd_patron_checkout');
+ obj.reset_nav_styling('cmd_patron_checkout',true);
var frame = obj.right_deck.set_iframe(
urls.XUL_CHECKOUT,
{},
@@ -172,7 +172,10 @@
],
'cmd_patron_checkout' : [
['command'],
- spawn_checkout_interface
+ function(ev) {
+ obj.reset_nav_styling('cmd_patron_checkout');
+ spawn_checkout_interface();
+ }
],
'cmd_patron_items' : [
['command'],
@@ -647,7 +650,7 @@
}
},
- 'reset_nav_styling' : function(btn) {
+ 'reset_nav_styling' : function(btn,dont_hide_summary) {
try {
this.controller.view.cmd_patron_checkout.setAttribute('style','');
this.controller.view.cmd_patron_items.setAttribute('style','');
@@ -657,6 +660,10 @@
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');
+ if (x && ! dont_hide_summary) {
+ x.hidden = true;
+ }
} catch(E) {
alert(E);
}
More information about the open-ils-commits
mailing list