From 1c1ace019cbd870bdf4636f5049dc306c0d3772e Mon Sep 17 00:00:00 2001 From: Thomas Berezansky Date: Wed, 3 Oct 2012 15:27:54 -0400 Subject: [PATCH] Make patron indicators clickable For example, make "(See Notes)" bring you to notes, provided the patron is already loaded (aka, not from search). Signed-off-by: Thomas Berezansky Signed-off-by: Ben Shum Signed-off-by: Kathy Lussier --- .../xul/staff_client/server/patron/display.js | 7 +++++ .../server/patron/display_horiz_overlay.xul | 28 +++++++++---------- .../server/patron/display_overlay.xul | 28 +++++++++---------- 3 files changed, 35 insertions(+), 28 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index 3530f713d7..03c350fa54 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -626,6 +626,13 @@ patron.display.prototype = { try { window.xulG.set_tab_name($("patronStrings").getString('staff.patron.display.init.retrieving_patron')); } catch(E) { alert(E); } } + var displayClickies = document.getElementById("pdm2hb1a").getElementsByTagName("label"); + for (var i = 0; i < displayClickies.length; i++) { + if (displayClickies[i].getAttribute('command')) { + displayClickies[i].setAttribute('onclick', 'this.doCommand();'); + } + } + obj.controller.view.PatronNavBar.selectedIndex = 1; JSAN.use('util.widgets'); util.widgets.enable_accesskeys_in_node_and_children( diff --git a/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul b/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul index 085fd5fd4d..f1a1361ee6 100644 --- a/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/display_horiz_overlay.xul @@ -18,20 +18,20 @@ - 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 876e137488..fdbee54fda 100644 --- a/Open-ILS/xul/staff_client/server/patron/display_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/display_overlay.xul @@ -18,20 +18,20 @@ - -- 2.43.2