From 8fe4aaa81cd96ddeda8dbaf130aa9b8d4e3f92d5 Mon Sep 17 00:00:00 2001 From: senator Date: Thu, 5 May 2011 16:35:59 +0000 Subject: [PATCH] Patch from Thomas Berezansky to do the following: Add more "click to copy" fields User's Name All three phone numbers Also fix issue where tooltip didn't clear when re-opening search form Signed-off-by: Thomas Berezansky git-svn-id: svn://svn.open-ils.org/ILS/trunk@20427 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/display.js | 3 +++ Open-ILS/xul/staff_client/server/patron/summary_overlay.xul | 6 +++--- .../staff_client/server/patron/summary_overlay_horiz.xul | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index ba9956edea..0f7f9ac9cd 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -137,6 +137,8 @@ patron.display.prototype = { obj.controller.view.cmd_search_form.setAttribute('disabled','true'); obj.left_deck.node.selectedIndex = 0; obj.controller.view.patron_name.setAttribute('value', $("patronStrings").getString('staff.patron.display.cmd_search_form.no_patron')); + obj.controller.view.patron_name.setAttribute('tooltiptext', ''); + obj.controller.view.patron_name.setAttribute('onclick', ''); removeCSSClass(document.documentElement,'PATRON_HAS_BILLS'); removeCSSClass(document.documentElement,'PATRON_HAS_OVERDUES'); removeCSSClass(document.documentElement,'PATRON_HAS_NOTES'); @@ -516,6 +518,7 @@ patron.display.prototype = { ] ); e.setAttribute('tooltiptext',tooltiptext); + e.setAttribute('onclick','try { copy_to_clipboard(event); } catch(E) { alert(E); }'); }; } ], diff --git a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul index 0c540e1f8f..a0d7debf3d 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul @@ -170,17 +170,17 @@ diff --git a/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul b/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul index 5b2e9c21e5..3687fff4a4 100644 --- a/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul +++ b/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul @@ -230,17 +230,17 @@ -- 2.43.2