"parent" is a special variable. some browsers (opera) will complain
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 3 Aug 2008 23:58:09 +0000 (23:58 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 3 Aug 2008 23:58:09 +0000 (23:58 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10241 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/org_utils.js

index 2acf826..b23fb62 100644 (file)
@@ -112,9 +112,9 @@ for (var i in orgArraySearcher) {
                continue;
        } 
 
-       var parent = findOrgUnit(x.parent_ou());
-       if (!parent.children()) parent.children(new Array());
-       parent.children().push(x);
+       var par = findOrgUnit(x.parent_ou());
+       if (!par.children()) par.children(new Array());
+       par.children().push(x);
 }
 
 function _tree_killer () {