From: phasefx Date: Thu, 19 Feb 2009 17:51:49 +0000 (+0000) Subject: nav button styling and auto-popup the menu button X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=38d195cb8f7fe0f872d9eac7530b8931cca7b72d;p=Evergreen.git nav button styling and auto-popup the menu button git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@12235 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 e12deb0497..e141dc28d4 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -266,6 +266,14 @@ patron.display.prototype = { ); } ], + 'cmd_patron_other' : [ + ['command'], + function(ev) { + try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible( document.getElementById("PatronNavBar_other" ) ); } catch(E) {}; + obj.reset_nav_styling('cmd_patron_other'); + try { document.getElementById('PatronNavBar_other').firstChild.showPopup(); } catch(E) {}; + } + ], 'cmd_patron_info' : [ ['command'], function(ev) { @@ -416,7 +424,7 @@ patron.display.prototype = { x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false); var x = document.getElementById("PatronNavBar_holds"); x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false); - var x = document.getElementById("PatronNavBar_info"); + var x = document.getElementById("PatronNavBar_other"); x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false); var x = document.getElementById("PatronNavBar_edit"); x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false); @@ -588,13 +596,17 @@ patron.display.prototype = { }, 'reset_nav_styling' : function(btn) { - this.controller.view.cmd_patron_checkout.setAttribute('style',''); - this.controller.view.cmd_patron_items.setAttribute('style',''); - this.controller.view.cmd_patron_edit.setAttribute('style',''); - this.controller.view.cmd_patron_info.setAttribute('style',''); - this.controller.view.cmd_patron_holds.setAttribute('style',''); - this.controller.view.cmd_patron_bills.setAttribute('style',''); - this.controller.view[ btn ].setAttribute('style','background: blue; color: white;'); + try { + this.controller.view.cmd_patron_checkout.setAttribute('style',''); + this.controller.view.cmd_patron_items.setAttribute('style',''); + this.controller.view.cmd_patron_edit.setAttribute('style',''); + this.controller.view.cmd_patron_other.setAttribute('style',''); + this.controller.view.cmd_patron_holds.setAttribute('style',''); + this.controller.view.cmd_patron_bills.setAttribute('style',''); + this.controller.view[ btn ].setAttribute('style','background: blue; color: white;'); + } catch(E) { + alert(E); + } }, 'render_search_form' : function(params) { diff --git a/Open-ILS/xul/staff_client/server/patron/display.xul b/Open-ILS/xul/staff_client/server/patron/display.xul index d06ba2dee3..1acc79c2c3 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.xul +++ b/Open-ILS/xul/staff_client/server/patron/display.xul @@ -96,6 +96,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/patron/display_overlay.xul b/Open-ILS/xul/staff_client/server/patron/display_overlay.xul index 93b8a1bdb1..6c0395faf0 100644 --- a/Open-ILS/xul/staff_client/server/patron/display_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/display_overlay.xul @@ -87,7 +87,7 @@ label="&staff.patron_navbar.bills;" accesskey="&staff.patron_navbar.bills.accesskey;"/>