From 712c5857d3be4a3a39c9294cc4757ab127d16b79 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 29 Jun 2006 14:54:01 +0000 Subject: [PATCH] quick copy buckets from copy browser git-svn-id: svn://svn.open-ils.org/ILS/trunk@4837 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/cat/copy_browser.js | 12 ++++-------- Open-ILS/xul/staff_client/server/cat/util.js | 6 +++++- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/cat/copy_browser.js b/Open-ILS/xul/staff_client/server/cat/copy_browser.js index d43f054143..e8d9ced57b 100644 --- a/Open-ILS/xul/staff_client/server/cat/copy_browser.js +++ b/Open-ILS/xul/staff_client/server/cat/copy_browser.js @@ -148,14 +148,10 @@ cat.copy_browser.prototype = { return o.split(/_/)[1]; } ); - - JSAN.use('util.window'); var win = new util.window(); - win.open( - xulG.url_prefix(urls.XUL_COPY_BUCKETS) - + '?copy_ids=' + js2JSON( list ), - 'sel_bucket_win' + win.window_name_increment(), - 'chrome,resizable,modal,center' - ); + + JSAN.use('cat.util'); + cat.util.add_copies_to_bucket( list ); + } catch(E) { obj.error.standard_unexpected_error_alert('copy browser -> add copies to bucket',E); } diff --git a/Open-ILS/xul/staff_client/server/cat/util.js b/Open-ILS/xul/staff_client/server/cat/util.js index 647fc0110f..5dfa04f4c6 100644 --- a/Open-ILS/xul/staff_client/server/cat/util.js +++ b/Open-ILS/xul/staff_client/server/cat/util.js @@ -62,7 +62,11 @@ cat.util.add_copies_to_bucket = function(selection_list) { util.functional.map_list( selection_list, function (o) { - return o.copy_id; + if (typeof o.copy_id != 'undefined' && o.copy_id != null) { + return o.copy_id; + } else { + return o; + } } ) ); -- 2.11.0