[open-ils-commits] r11714 - trunk/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Dec 30 15:20:29 EST 2008
Author: phasefx
Date: 2008-12-30 15:20:25 -0500 (Tue, 30 Dec 2008)
New Revision: 11714
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/display.js
trunk/Open-ILS/xul/staff_client/server/patron/display_overlay.xul
Log:
this ensures that a selected patron nav button becomes visible in the arrowscrollbox when selected via the keyboard
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js 2008-12-30 20:09:10 UTC (rev 11713)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js 2008-12-30 20:20:25 UTC (rev 11714)
@@ -32,6 +32,7 @@
obj.left_deck = new util.deck('patron_left_deck');
function spawn_checkout_interface() {
+ try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible( document.getElementById("PatronNavBar_checkout" ) ); } catch(E) {};
obj.reset_nav_styling('cmd_patron_checkout');
var frame = obj.right_deck.set_iframe(
urls.XUL_CHECKOUT,
@@ -137,6 +138,7 @@
'cmd_patron_refresh' : [
['command'],
function(ev) {
+ try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible( document.getElementById("PatronNavBar_refresh" ) ); } catch(E) {};
obj.network.simple_request(
'RECALCULATE_STANDING_PENALTIES',
[ ses(), obj.patron.id() ]
@@ -151,6 +153,7 @@
'cmd_patron_items' : [
['command'],
function(ev) {
+ try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible( document.getElementById("PatronNavBar_items" ) ); } catch(E) {};
obj.reset_nav_styling('cmd_patron_items');
var frame = obj.right_deck.set_iframe(
urls.XUL_PATRON_ITEMS,
@@ -176,6 +179,7 @@
'cmd_patron_edit' : [
['command'],
function(ev) {
+ try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible( document.getElementById("PatronNavBar_edit" ) ); } catch(E) {};
obj.reset_nav_styling('cmd_patron_edit');
function spawn_search(s) {
@@ -249,6 +253,7 @@
'cmd_patron_info' : [
['command'],
function(ev) {
+ try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible( document.getElementById("PatronNavBar_info" ) ); } catch(E) {};
obj.reset_nav_styling('cmd_patron_info');
obj.right_deck.set_iframe(
urls.XUL_PATRON_INFO, // + '?patron_id=' + window.escape( obj.patron.id() ),
@@ -270,6 +275,7 @@
'cmd_patron_holds' : [
['command'],
function(ev) {
+ try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible( document.getElementById("PatronNavBar_holds" ) ); } catch(E) {};
obj.reset_nav_styling('cmd_patron_holds');
obj.right_deck.set_iframe(
urls.XUL_PATRON_HOLDS,
@@ -292,6 +298,7 @@
'cmd_patron_bills' : [
['command'],
function(ev) {
+ try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible( document.getElementById("PatronNavBar_bills" ) ); } catch(E) {};
obj.reset_nav_styling('cmd_patron_bills');
var f = obj.right_deck.set_iframe(
urls.XUL_PATRON_BILLS,
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display_overlay.xul 2008-12-30 20:09:10 UTC (rev 11713)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display_overlay.xul 2008-12-30 20:20:25 UTC (rev 11714)
@@ -56,7 +56,7 @@
<hbox id="PatronNavBar1">
<spacer flex="1"/>
- <arrowscrollbox orient="horizontal" flex="1">
+ <arrowscrollbox id="PatronNavBarScrollbox" orient="horizontal" flex="1">
<spacer flex="1"/>
<button id="PatronNavBar_refresh" command="cmd_patron_refresh" class="nav"
label="&staff.patron_navbar.refresh;" accesskey="&staff.patron_navbar.refresh.accesskey;"/>
More information about the open-ils-commits
mailing list