From 626df8689aee92badf6c4607aa023fa0fa3f8b07 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 20 Dec 2012 13:40:41 -0500 Subject: [PATCH] lp1092644 refresh row with Item Status Edit Volume Assuming the Trim List box is not selected, this simply refreshes selected rows in the Item Status interface that were used to provide context for the Actions for Catalogers -> Edit Volumes command. If Trim List is selected, then the items are instead re-added to top of the list. Signed-off-by: Jason Etheridge Signed-off-by: Ben Shum --- Open-ILS/xul/staff_client/server/circ/copy_status.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/circ/copy_status.js b/Open-ILS/xul/staff_client/server/circ/copy_status.js index a65f8718b8..ca42c3cf55 100644 --- a/Open-ILS/xul/staff_client/server/circ/copy_status.js +++ b/Open-ILS/xul/staff_client/server/circ/copy_status.js @@ -822,6 +822,13 @@ circ.copy_status.prototype = { } JSAN.use('cat.util'); cat.util.batch_edit_volumes( volumes ); + var funcs = []; + for (var i = 0; i < obj.selection_list.length; i++) { + var barcode = obj.selection_list[i].barcode; + funcs.push( function(a) { return function() { obj.copy_status( a, true ); }; }(barcode) ); + } + for (var i = 0; i < funcs.length; i++) { funcs[i](); } + } catch(E) { obj.error.standard_unexpected_error_alert('Copy Status -> Volume Edit',E); -- 2.11.0