in the public interface, never show hidden orgs (or descendants) in a selector
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 May 2009 17:00:37 +0000 (17:00 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 May 2009 17:00:37 +0000 (17:00 +0000)
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

index a69d91a..c596595 100644 (file)
@@ -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() )