[open-ils-commits] r10442 - trunk/Open-ILS/web/opac/common/js
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Aug 25 17:57:11 EDT 2008
Author: erickson
Date: 2008-08-25 17:57:06 -0400 (Mon, 25 Aug 2008)
New Revision: 10442
Modified:
trunk/Open-ILS/web/opac/common/js/opac_utils.js
Log:
added new function which builds an org selector from a set of top-level orgs
Modified: trunk/Open-ILS/web/opac/common/js/opac_utils.js
===================================================================
--- trunk/Open-ILS/web/opac/common/js/opac_utils.js 2008-08-25 21:56:16 UTC (rev 10441)
+++ trunk/Open-ILS/web/opac/common/js/opac_utils.js 2008-08-25 21:57:06 UTC (rev 10442)
@@ -994,7 +994,17 @@
buildOrgSel( selector, org.children()[c], offset);
}
+function buildMergedOrgSel(selector, org_list, offset) {
+ for(var i = 0; i < org_list.length; i++) {
+ var org = findOrgUnit(org_list[i]);
+ insertSelectorVal( selector, -1,
+ org.name(), org.id(), null, findOrgDepth(org) - offset );
+ for( var c in org.children() )
+ buildOrgSel( selector, org.children()[c], offset);
+ }
+}
+
function parseForm(form) {
if(!form) return {};
More information about the open-ils-commits
mailing list