From f8c36d02212fbdd03403fd66a1b4affa8cf15a2b Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 22 Sep 2008 05:04:45 +0000 Subject: [PATCH] toward standardizing some list actions git-svn-id: svn://svn.open-ils.org/ILS/trunk@10675 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/holds.js | 13 +++---------- Open-ILS/xul/staff_client/server/patron/holds.xul | 5 ++++- .../xul/staff_client/server/patron/holds_overlay.xul | 19 ++++++++++++++----- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index 1374eff940..19677ebe76 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -215,16 +215,9 @@ patron.holds.prototype = { } } ], - 'cmd_holds_export' : [ - ['command'], - function() { - try { - obj.list.dump_csv_to_clipboard(); - } catch(E) { - obj.error.standard_unexpected_error_alert('export 1',E); - } - } - ], + 'cmd_csv_to_clipboard' : [ ['command'], function() { obj.list.dump_csv_to_clipboard(); } ], + 'cmd_csv_to_printer' : [ ['command'], function() { obj.list.dump_csv_to_printer(); } ], + 'cmd_csv_to_file' : [ ['command'], function() { obj.list.dump_csv_to_file( { 'defaultFileName' : 'holds.txt' } ); } ], 'cmd_show_notifications' : [ ['command'], diff --git a/Open-ILS/xul/staff_client/server/patron/holds.xul b/Open-ILS/xul/staff_client/server/patron/holds.xul index 9b7f25c31f..7ec7c4e441 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.xul +++ b/Open-ILS/xul/staff_client/server/patron/holds.xul @@ -78,8 +78,11 @@ + + + + - diff --git a/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul b/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul index e3f26bf620..321262bd77 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul @@ -102,12 +102,21 @@ - + +