In Holdings Maintenance, we used to disable some render child behavior for the top...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Jul 2008 05:05:11 +0000 (05:05 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Jul 2008 05:05:11 +0000 (05:05 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10208 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/copy_browser.js

index e7e43ed..6e30761 100644 (file)
@@ -1220,8 +1220,7 @@ cat.copy_browser.prototype = {
        'on_select_org' : function(org_id,twisty) {
                var obj = this;
                var org = obj.data.hash.aou[ org_id ];
-               if (obj.data.hash.aout[ org.ou_type() ].depth() == 0) return; 
-               /* otherwise, we'd show every system in the consortia */
+        if (obj.data.hash.aout[ org.ou_type() ].depth() == 0 && ! get_bool( obj.data.hash.aout[ org.ou_type() ].can_have_vols() ) ) return;
                var funcs = [];
                funcs.push( function() { 
                        document.getElementById('cmd_refresh_list').setAttribute('disabled','true'); 
@@ -1340,7 +1339,7 @@ cat.copy_browser.prototype = {
                        }
 
                        if (document.getElementById('show_acns').checked) {
-                               if ( obj.data.hash.aout[ org.ou_type() ].depth() != 0 ) {
+                if (! ( obj.data.hash.aout[ org.ou_type() ].depth() == 0 && ! get_bool( obj.data.hash.aout[ org.ou_type() ].can_have_vols() ) )) {
                                        node.setAttribute('open','true');
                                        setTimeout( function() { obj.on_select_org( org.id() ); }, 0 );
                                }