From 477ba6f4a467fb6eba4aceb4ccf33e70aedaf983 Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 22 Sep 2008 04:36:43 +0000 Subject: [PATCH] toward standardizing some list actions git-svn-id: svn://svn.open-ils.org/ILS/trunk@10672 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../staff_client/server/circ/in_house_use.js | 35 +++++++++---------- .../staff_client/server/circ/in_house_use.xul | 25 ++++++++----- 2 files changed, 33 insertions(+), 27 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/circ/in_house_use.js b/Open-ILS/xul/staff_client/server/circ/in_house_use.js index da0e6b4cd7..3c1c4631ba 100644 --- a/Open-ILS/xul/staff_client/server/circ/in_house_use.js +++ b/Open-ILS/xul/staff_client/server/circ/in_house_use.js @@ -36,7 +36,7 @@ circ.in_house_use.prototype = { 'map_row_to_columns' : circ.util.std_map_row_to_columns(), 'on_select' : function() { var sel = obj.list.retrieve_selection(); - document.getElementById('clip_button').disabled = sel.length < 1; + document.getElementById('sel_clip').disabled = sel.length < 1; } } ); @@ -48,7 +48,10 @@ circ.in_house_use.prototype = { 'save_columns' : [ [ 'command' ], function() { obj.list.save_columns(); } ], 'sel_clip' : [ ['command'], - function() { obj.list.clipboard(); } + function() { + obj.list.clipboard(); + obj.controller.view.in_house_use_barcode_entry_textbox.focus(); + } ], 'in_house_use_menu_placeholder' : [ ['render'], @@ -162,23 +165,19 @@ circ.in_house_use.prototype = { obj.list.print(p); } ], - 'cmd_in_house_use_export' : [ - ['command'], - function() { - obj.list.dump_csv_to_clipboard(); - } - ], + 'cmd_csv_to_clipboard' : [ ['command'], function() { + obj.list.dump_csv_to_clipboard(); + obj.controller.view.in_house_use_barcode_entry_textbox.focus(); + } ], + 'cmd_csv_to_printer' : [ ['command'], function() { + obj.list.dump_csv_to_printer(); + obj.controller.view.in_house_use_barcode_entry_textbox.focus(); + } ], + 'cmd_csv_to_file' : [ ['command'], function() { + obj.list.dump_csv_to_file( { 'defaultFileName' : 'checked_in.txt' } ); + obj.controller.view.in_house_use_barcode_entry_textbox.focus(); + } ] - 'cmd_in_house_use_reprint' : [ - ['command'], - function() { - } - ], - 'cmd_in_house_use_done' : [ - ['command'], - function() { - } - ] } } ); diff --git a/Open-ILS/xul/staff_client/server/circ/in_house_use.xul b/Open-ILS/xul/staff_client/server/circ/in_house_use.xul index 7ea88fd228..8f1fccd54a 100644 --- a/Open-ILS/xul/staff_client/server/circ/in_house_use.xul +++ b/Open-ILS/xul/staff_client/server/circ/in_house_use.xul @@ -72,11 +72,11 @@ + + + - - - @@ -105,19 +105,26 @@ + +