853d8038a5874ee0c8ba45b7584134f4deadb312
max
  Mon Dec 16 03:31:39 2024 -0800
first step towards a solution for the all children hidden problem, refs #34959

diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index d2a089e..c9b728f 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -2164,34 +2164,34 @@
 
         // lone parents get special treatment
         for (var delFam of familyAnalysis.loneParents) {
             var loneParent = delFam[0];
             var loneParentChildren = delFam[1];
 
             // remove all the lone parent children now from the track image
             // and also unselect them, if they are children of a composite
             for (var childName of loneParentChildren) {
                 $(document.getElementById('tr_' + childName)).remove();
                 var rec = hgTracks.trackDb[childName];
                 // the following means that all composite children are always unselected, so you cannot get the
                 // current selection easily back, since we always hide them all, instead of just hiding the parent.
                 // The problem is that it's not easy to find out if there is an easier way to hide them, the code
                 // would have to go over all possible parents, not just topParents. Maybe one day.
-                if (tdbIsSubtrack(rec)) {
-                    cartVars.push(childName+"_sel");
-                    cartVals.push('0');
-                }
+                //if (tdbIsSubtrack(rec)) {
+                 //  cartVars.push(childName+"_sel");
+                 //   cartVals.push('0');
+                //}
             }
 
             // and set the lone parent to hide in the cart
             cartVars.push(loneParent);
             cartVals.push('hide');  // need to explicitely set to "hide", not "[]", to hide the default tracks
              
             // update the track list below the image
             vis.update(loneParent, 'hide');
             rightClick.hideLegends();
         }
 
         // handle all other tracks, they are either not parents or parents with at least one child left
         var delIds = familyAnalysis.others;
         for (var i = 0; i<delIds.length; i++) {
             var id = delIds[i];