From: phasefx Date: Tue, 8 Aug 2006 00:29:55 +0000 (+0000) Subject: clipboard X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7129ce793f213da74494a73c8dbbfc997bb29fe5;p=evergreen%2Fpines.git clipboard git-svn-id: svn://svn.open-ils.org/ILS/trunk@5353 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/circ/checkin.js b/Open-ILS/xul/staff_client/server/circ/checkin.js index a35e342f4a..100f7cf913 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkin.js +++ b/Open-ILS/xul/staff_client/server/circ/checkin.js @@ -52,6 +52,7 @@ circ.checkin.prototype = { obj.controller.view.sel_bucket.setAttribute('disabled','true'); obj.controller.view.sel_spine.setAttribute('disabled','true'); obj.controller.view.sel_transit_abort.setAttribute('disabled','true'); + obj.controller.view.sel_clip.setAttribute('disabled','true'); } else { obj.controller.view.sel_edit.setAttribute('disabled','false'); obj.controller.view.sel_opac.setAttribute('disabled','false'); @@ -59,6 +60,7 @@ circ.checkin.prototype = { obj.controller.view.sel_bucket.setAttribute('disabled','false'); obj.controller.view.sel_spine.setAttribute('disabled','false'); obj.controller.view.sel_transit_abort.setAttribute('disabled','false'); + obj.controller.view.sel_clip.setAttribute('disabled','false'); } } catch(E) { alert('FIXME: ' + E); @@ -72,6 +74,10 @@ circ.checkin.prototype = { obj.controller.init( { 'control_map' : { + 'sel_clip' : [ + ['command'], + function() { obj.list.clipboard(); } + ], 'sel_edit' : [ ['command'], function() { diff --git a/Open-ILS/xul/staff_client/server/circ/checkin.xul b/Open-ILS/xul/staff_client/server/circ/checkin.xul index ef1080c9b2..2f9fa50056 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkin.xul +++ b/Open-ILS/xul/staff_client/server/circ/checkin.xul @@ -82,6 +82,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul b/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul index 2fab2d2cb0..72d72801ef 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul +++ b/Open-ILS/xul/staff_client/server/circ/checkin_overlay.xul @@ -11,6 +11,7 @@ + @@ -54,6 +55,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index e78c2c7cf9..1d2bb1a62c 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -31,6 +31,10 @@ circ.checkout.prototype = { { 'columns' : columns, 'map_row_to_column' : circ.util.std_map_row_to_column(), + 'on_select' : function() { + var sel = obj.list.retrieve_selection(); + document.getElementById('clip_button').disabled = sel.length < 1; + } } ); @@ -38,6 +42,10 @@ circ.checkout.prototype = { obj.controller.init( { 'control_map' : { + 'sel_clip' : [ + ['command'], + function() { obj.list.clipboard(); } + ], 'checkout_menu_placeholder' : [ ['render'], function(e) { @@ -355,6 +363,7 @@ circ.checkout.prototype = { } else { obj.error.sdump('D_CIRC','circ.checkout: No external .on_checkout()\n'); } + } else { throw(checkout); } diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.xul b/Open-ILS/xul/staff_client/server/circ/checkout.xul index 0369414da3..9a48307e5f 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.xul +++ b/Open-ILS/xul/staff_client/server/circ/checkout.xul @@ -81,6 +81,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/circ/checkout_overlay.xul b/Open-ILS/xul/staff_client/server/circ/checkout_overlay.xul index 541ef747ef..af561f7a60 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout_overlay.xul +++ b/Open-ILS/xul/staff_client/server/circ/checkout_overlay.xul @@ -60,6 +60,7 @@ label="&staff.patron_display.checkout.reprint_receipt_label;" command="cmd_checkout_reprint" accesskey="&staff.patron_display.checkout.reprint_receipt_label.accesskey;"/> +