7c040fa50292b094f5ac41add20bc736549f4a64
tdreszer
  Wed Feb 8 15:54:17 2012 -0800
Katrina is not happy that making one subtrack visible will turn on the set.
diff --git src/hg/js/subCfg.js src/hg/js/subCfg.js
index 84eeb37..9709c0c 100644
--- src/hg/js/subCfg.js
+++ src/hg/js/subCfg.js
@@ -670,32 +670,40 @@
                 $(this).unbind('click');
             }
             if (this.selectedIndex == 0) { // setting to hide so uncheck and disable.
                 // Easiest is to uncheck subCB and reset vis
                 //    so that the reverse action makes sense
                 var subCb = normed($("input[name='" + this.name + "_sel']"));
                 if (subCb != undefined) {
                     subCfg.checkOneSubtrack(subCb,false,true);
                     subCfg.inheritSetting(this,true);
                 } else {
                     warn('DEBUG: Cant find subCB for ' + this.name);
                 }
             } else {
                 subCfg.markChange(e,this);
                 // If made visible, be sure to make composite visible
-                if (this.selectedIndex > 0)
-                    exposeAll();
+                // But do NOT turn composite from hide to full, since it will turn on other subs
+                // Just trigger a supertrack reshaping
+                if (this.selectedIndex > 0) {
+                    //exposeAll();
+                    var visDD = normed($("select.visDD"));
+                    if (visDD != undefined) {
+                        if ($(visDD).hasClass('superChild'))
+                            visTriggersHiddenSelect(visDD);
+                    }
+                }
             }
         });
     },
 
     enableCfg: function (subCb,setTo)
     { // Enables or disables subVis and wrench
         var tr = normed($(subCb).closest('tr'));
         if (tr == undefined) {
             warn("DEBUG: subCfg.enableCfg() could not find TR for CB: "+subCb.name);
             return false;
         }
         var subFaux = normed($(tr).find('div.subVisDD'));
         if (subFaux != undefined) {
             if (setTo == true)
                 $(subFaux).removeClass('disabled');