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:02:23 +0000 (05:02 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 31 Jul 2008 05:02:23 +0000 (05:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@10206 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index ec56a84..b79e29f 100644 (file)
@@ -1159,8 +1159,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'); 
@@ -1279,7 +1278,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 );
                                }