From d8810b432c53ee4fce8977c73fb135697f805c4f Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 13 May 2009 17:00:37 +0000 Subject: [PATCH] in the public interface, never show hidden orgs (or descendants) in a selector git-svn-id: svn://svn.open-ils.org/ILS/trunk@13154 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/common/js/opac_utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/web/opac/common/js/opac_utils.js b/Open-ILS/web/opac/common/js/opac_utils.js index a69d91a6d..c5965958b 100644 --- a/Open-ILS/web/opac/common/js/opac_utils.js +++ b/Open-ILS/web/opac/common/js/opac_utils.js @@ -1009,6 +1009,7 @@ function goHome() { function buildOrgSel(selector, org, offset, namecol) { if(!namecol) namecol = 'name'; + if(!isXUL() && !isTrue(org.opac_visible())) return; insertSelectorVal( selector, -1, org[namecol](), org.id(), null, findOrgDepth(org) - offset ); for( var c in org.children() ) -- 2.11.0