From f913355511a1b507a4454c85f4ba7cf55e187179 Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 15 Aug 2006 13:46:09 +0000 Subject: [PATCH] clipboard for patron search git-svn-id: svn://svn.open-ils.org/ILS/trunk@5512 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/search_result.js | 11 +++++++++++ Open-ILS/xul/staff_client/server/patron/search_result.xul | 1 + .../xul/staff_client/server/patron/search_result_overlay.xul | 1 + 3 files changed, 13 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/patron/search_result.js b/Open-ILS/xul/staff_client/server/patron/search_result.js index c5eb6f2403..891b3c39c1 100644 --- a/Open-ILS/xul/staff_client/server/patron/search_result.js +++ b/Open-ILS/xul/staff_client/server/patron/search_result.js @@ -63,6 +63,7 @@ patron.search_result.prototype = { sel, function(o) { return o.getAttribute('retrieve_id'); } ); + obj.controller.view.cmd_sel_clip.setAttribute('disabled', list.length < 1 ); if (typeof obj.on_select == 'function') { obj.on_select(list); } @@ -90,6 +91,16 @@ patron.search_result.prototype = { alert( js2JSON( obj.list.dump() ) ); } ], + 'cmd_sel_clip' : [ + ['command'], + function() { + try { + obj.list.clipboard(); + } catch(E) { + obj.error.standard_unexpected_error_alert('patron search clipboard',E); + } + } + ], } } ); diff --git a/Open-ILS/xul/staff_client/server/patron/search_result.xul b/Open-ILS/xul/staff_client/server/patron/search_result.xul index 2f4e08dbdd..aa1954337a 100644 --- a/Open-ILS/xul/staff_client/server/patron/search_result.xul +++ b/Open-ILS/xul/staff_client/server/patron/search_result.xul @@ -71,6 +71,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/patron/search_result_overlay.xul b/Open-ILS/xul/staff_client/server/patron/search_result_overlay.xul index 148977d1f6..1a9e21260d 100644 --- a/Open-ILS/xul/staff_client/server/patron/search_result_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/search_result_overlay.xul @@ -14,6 +14,7 @@ +