From: Rogan Hamby Date: Mon, 12 Jun 2017 17:41:02 +0000 (-0400) Subject: remove searching child org units, requirement to have volumes and adds existing org... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Frogan%2Flp1346381_copy_location_search;p=working%2FEvergreen.git remove searching child org units, requirement to have volumes and adds existing org unit --- diff --git a/Open-ILS/web/js/ui/default/opac/copyloc.js b/Open-ILS/web/js/ui/default/opac/copyloc.js index ddd1a5cf4f..08023d69b5 100644 --- a/Open-ILS/web/js/ui/default/opac/copyloc.js +++ b/Open-ILS/web/js/ui/default/opac/copyloc.js @@ -10,11 +10,6 @@ function apply_adv_copy_locations() { var selected_id = sel.options[sel.selectedIndex].getAttribute('value'); var org_unit = aou_hash[selected_id]; - if (org_unit.can_have_vols != 't') { - dojo.addClass('adv_chunk_copy_location', 'hidden'); - return; - } - var display_orgs = []; // we want to display copy locations at the selected org, @@ -34,7 +29,7 @@ function apply_adv_copy_locations() { collect_parent_orgs(aou_hash[org_id].parent_ou); } - collect_child_orgs(org_unit.id); + display_orgs.push(org_unit.id); collect_parent_orgs(org_unit.parent_ou); fetch_adv_copy_locations(display_orgs); }