[open-ils-commits] r11809 - trunk/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jan 12 20:03:58 EST 2009
Author: phasefx
Date: 2009-01-12 20:03:57 -0500 (Mon, 12 Jan 2009)
New Revision: 11809
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/display.js
Log:
make sure buttons in scrollbox are visible when navigating them by arrow keys
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js 2009-01-12 22:09:52 UTC (rev 11808)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js 2009-01-13 01:03:57 UTC (rev 11809)
@@ -382,6 +382,23 @@
}
);
+ var x = document.getElementById("PatronNavBar_checkout");
+ x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false);
+ var x = document.getElementById("PatronNavBar_refresh");
+ x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false);
+ var x = document.getElementById("PatronNavBar_items");
+ 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");
+ 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);
+ var x = document.getElementById("PatronNavBar_bills");
+ x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false);
+ var x = document.getElementById("PatronNavBar_exit");
+ x.addEventListener( 'focus', function(xx) { return function() { try { document.getElementById("PatronNavBarScrollbox").ensureElementIsVisible(xx); } catch(E) {}; } }(x), false);
+
if (obj.barcode || obj.id) {
if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
try { window.xulG.set_tab_name($("patronStrings").getString('staff.patron.display.init.retrieving_patron')); } catch(E) { alert(E); }
More information about the open-ils-commits
mailing list