checking for can_hav_users when setting pickup lib
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 20 Mar 2006 22:59:39 +0000 (22:59 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 20 Mar 2006 22:59:39 +0000 (22:59 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3406 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/holds.js

index 0bf2139..f0e41f4 100644 (file)
@@ -177,7 +177,7 @@ function holdsBuildOrgSelector(node) {
        var type = findOrgType(node.ou_type());
        var indent = type.depth() - 1;
        var opt = setSelectorVal( selector, index, node.name(), node.id(), null, indent );
        var type = findOrgType(node.ou_type());
        var indent = type.depth() - 1;
        var opt = setSelectorVal( selector, index, node.name(), node.id(), null, indent );
-       if(!type.can_have_vols()) opt.disabled = true;
+       if(!type.can_have_users()) opt.disabled = true;
        
        if( node.id() == holdRecipient.home_ou() ) {
                selector.selectedIndex = index;
        
        if( node.id() == holdRecipient.home_ou() ) {
                selector.selectedIndex = index;