[open-ils-commits] r20427 - trunk/Open-ILS/xul/staff_client/server/patron (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu May 5 12:36:02 EDT 2011
Author: senator
Date: 2011-05-05 12:35:59 -0400 (Thu, 05 May 2011)
New Revision: 20427
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/display.js
trunk/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul
trunk/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul
Log:
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 <tsbere at mvlc.org>
Modified: trunk/Open-ILS/xul/staff_client/server/patron/display.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/display.js 2011-05-05 15:43:09 UTC (rev 20426)
+++ trunk/Open-ILS/xul/staff_client/server/patron/display.js 2011-05-05 16:35:59 UTC (rev 20427)
@@ -137,6 +137,8 @@
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 @@
]
);
e.setAttribute('tooltiptext',tooltiptext);
+ e.setAttribute('onclick','try { copy_to_clipboard(event); } catch(E) { alert(E); }');
};
}
],
Modified: trunk/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul 2011-05-05 15:43:09 UTC (rev 20426)
+++ trunk/Open-ILS/xul/staff_client/server/patron/summary_overlay.xul 2011-05-05 16:35:59 UTC (rev 20427)
@@ -170,17 +170,17 @@
<row id="pdcgpr1">
<label id="PatronSummaryContact_day_phone_label" class="copyable text_left phone label day_phone"
value="&staff.patron_display.day_phone.label;" />
- <description id="patron_day_phone" class="copyable phone value day_phone"/>
+ <description id="patron_day_phone" class="copyable phone value day_phone click_link" onclick="try { copy_to_clipboard(event); } catch(E) { alert(E); }"/>
</row>
<row id="pdcgpr2">
<label id="PatronSummaryContact_evening_phone_label" class="copyable text_left phone label evening_phone"
value="&staff.patron_display.evening_phone.label;" />
- <description id="patron_evening_phone" class="copyable phone value evening_phone"/>
+ <description id="patron_evening_phone" class="copyable phone value evening_phone click_link" onclick="try { copy_to_clipboard(event); } catch(E) { alert(E); }"/>
</row>
<row id="pdcgpr3">
<label id="PatronSummaryContact_other_phone_label" class="copyable text_left phone label other_phone"
value="&staff.patron_display.other_phone.label;" />
- <description id="patron_other_phone" class="copyable phone value other_phone"/>
+ <description id="patron_other_phone" class="copyable phone value other_phone click_link" onclick="try { copy_to_clipboard(event); } catch(E) { alert(E); }"/>
</row>
<row id="pdsgpr4"><label id="pdsgpr4l" value=" "/></row>
<row id="pdsgpr4a">
Modified: trunk/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul 2011-05-05 15:43:09 UTC (rev 20426)
+++ trunk/Open-ILS/xul/staff_client/server/patron/summary_overlay_horiz.xul 2011-05-05 16:35:59 UTC (rev 20427)
@@ -230,17 +230,17 @@
<row id="pdcgpr1">
<label id="PatronSummaryContact_day_phone_label" class="copyable text_left phone label day_phone"
value="&staff.patron_display.day_phone.label;" />
- <description id="patron_day_phone" class="copyable phone value day_phone"/>
+ <description id="patron_day_phone" class="copyable phone value day_phone click_link" onclick="try { copy_to_clipboard(event); } catch(E) { alert(E); }"/>
</row>
<row id="pdcgpr2">
<label id="PatronSummaryContact_evening_phone_label" class="copyable text_left phone label evening_phone"
value="&staff.patron_display.evening_phone.label;" />
- <description id="patron_evening_phone" class="copyable phone value evening_phone"/>
+ <description id="patron_evening_phone" class="copyable phone value evening_phone click_link" onclick="try { copy_to_clipboard(event); } catch(E) { alert(E); }"/>
</row>
<row id="pdcgpr3">
<label id="PatronSummaryContact_other_phone_label" class="copyable text_left phone label other_phone"
value="&staff.patron_display.other_phone.label;" />
- <description id="patron_other_phone" class="copyable phone value other_phone"/>
+ <description id="patron_other_phone" class="copyable phone value other_phone click_link" onclick="try { copy_to_clipboard(event); } catch(E) { alert(E); }"/>
</row>
</rows>
</grid>
More information about the open-ils-commits
mailing list