[open-ils-commits] r13154 - trunk/Open-ILS/web/opac/common/js (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed May 13 13:00:40 EDT 2009


Author: erickson
Date: 2009-05-13 13:00:37 -0400 (Wed, 13 May 2009)
New Revision: 13154

Modified:
   trunk/Open-ILS/web/opac/common/js/opac_utils.js
Log:
in the public interface, never show hidden orgs (or descendants) in a selector

Modified: trunk/Open-ILS/web/opac/common/js/opac_utils.js
===================================================================
--- trunk/Open-ILS/web/opac/common/js/opac_utils.js	2009-05-13 16:31:42 UTC (rev 13153)
+++ trunk/Open-ILS/web/opac/common/js/opac_utils.js	2009-05-13 17:00:37 UTC (rev 13154)
@@ -1009,6 +1009,7 @@
 
 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() )



More information about the open-ils-commits mailing list