From: phasefx Date: Thu, 10 Aug 2006 12:19:43 +0000 (+0000) Subject: some Copy to Clipboard holdouts X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1d0c35440534dcb8c516569d7ebbda1e55206208;p=Evergreen.git some Copy to Clipboard holdouts git-svn-id: svn://svn.open-ils.org/ILS/trunk@5418 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/holds.js b/Open-ILS/xul/staff_client/server/patron/holds.js index eaed2e2da3..43e8a5cca6 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.js +++ b/Open-ILS/xul/staff_client/server/patron/holds.js @@ -97,6 +97,7 @@ patron.holds.prototype = { 'on_select' : function(ev) { JSAN.use('util.functional'); var sel = obj.list.retrieve_selection(); + obj.controller.view.sel_clip.setAttribute('disabled',sel.length < 1); obj.retrieve_ids = util.functional.map_list( sel, function(o) { return JSON2js( o.getAttribute('retrieve_id') ); } @@ -131,6 +132,10 @@ patron.holds.prototype = { obj.controller.init( { 'control_map' : { + 'sel_clip' : [ + ['command'], + function() { obj.list.clipboard(); } + ], 'cmd_broken' : [ ['command'], function() { alert('Not Yet Implemented'); } diff --git a/Open-ILS/xul/staff_client/server/patron/holds.xul b/Open-ILS/xul/staff_client/server/patron/holds.xul index 8dc2038e59..49a81c26f7 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds.xul +++ b/Open-ILS/xul/staff_client/server/patron/holds.xul @@ -65,6 +65,7 @@ + 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 e3fdf85e16..9c4cbc3ff5 100644 --- a/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/holds_overlay.xul @@ -11,6 +11,7 @@ + @@ -49,6 +50,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/patron/items.js b/Open-ILS/xul/staff_client/server/patron/items.js index e8abab6625..98f06fba2b 100644 --- a/Open-ILS/xul/staff_client/server/patron/items.js +++ b/Open-ILS/xul/staff_client/server/patron/items.js @@ -23,6 +23,8 @@ patron.items.prototype = { { 'control_map' : { 'cmd_broken' : [ ['command'], function() { alert('Not Yet Implemented'); } ], + 'sel_clip' : [ ['command'], function() { obj.list.clipboard(); } ], + 'sel_clip2' : [ ['command'], function() { obj.list2.clipboard(); } ], 'cmd_items_print' : [ ['command'], function() { obj.items_print(1); } ], 'cmd_items_print2' : [ ['command'], function() { obj.items_print(2); } ], 'cmd_items_renew' : [ ['command'], function() { obj.items_renew(1); } ], @@ -47,6 +49,8 @@ patron.items.prototype = { obj.retrieve(); + obj.controller.view.sel_clip.setAttribute('disabled','true'); + obj.controller.view.sel_clip2.setAttribute('disabled','true'); obj.controller.view.cmd_items_claimed_returned.setAttribute('disabled','true'); obj.controller.view.cmd_items_renew.setAttribute('disabled','true'); obj.controller.view.cmd_items_checkin.setAttribute('disabled','true'); @@ -547,6 +551,7 @@ patron.items.prototype = { 'on_select' : function(ev) { JSAN.use('util.functional'); var sel = obj.list.retrieve_selection(); + obj.controller.view.sel_clip.setAttribute('disabled',sel.length < 1); var list = util.functional.map_list( sel, function(o) { return JSON2js( o.getAttribute('retrieve_id') ); } @@ -573,6 +578,7 @@ patron.items.prototype = { 'on_select' : function(ev) { JSAN.use('util.functional'); var sel = obj.list2.retrieve_selection(); + obj.controller.view.sel_clip2.setAttribute('disabled',sel.length < 1); var list = util.functional.map_list( sel, function(o) { return JSON2js( o.getAttribute('retrieve_id') ); } diff --git a/Open-ILS/xul/staff_client/server/patron/items.xul b/Open-ILS/xul/staff_client/server/patron/items.xul index 1853d064d2..a9997981c3 100644 --- a/Open-ILS/xul/staff_client/server/patron/items.xul +++ b/Open-ILS/xul/staff_client/server/patron/items.xul @@ -64,6 +64,7 @@ + @@ -76,6 +77,7 @@ + diff --git a/Open-ILS/xul/staff_client/server/patron/items_overlay.xul b/Open-ILS/xul/staff_client/server/patron/items_overlay.xul index fd7a69ee24..76bbb7eece 100644 --- a/Open-ILS/xul/staff_client/server/patron/items_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/items_overlay.xul @@ -11,6 +11,7 @@ + @@ -21,6 +22,7 @@ + @@ -66,6 +68,7 @@ + @@ -84,6 +87,7 @@ +