696a2e28b77acdad5f799eb5aadd970f980299b7
chmalee
  Fri Oct 28 14:47:21 2022 -0700
Fix bug with previous multiTerm fix and make tree checkboxes not auto collapse on click, refs #29693

diff --git src/hg/js/hgSearch.js src/hg/js/hgSearch.js
index 5d8f79f..ad601d8 100644
--- src/hg/js/hgSearch.js
+++ src/hg/js/hgSearch.js
@@ -402,34 +402,30 @@
     function showOrHideResults(event, node) {
         /* When a checkbox is checked/uncheck in the tree, show/hide the corresponding
          * result section in the list of results */
         var state = node.state.checked;
         if (node.children.length > 0) {
             _.each(node.children, function(n) {
                 showOrHideResults(event, $("#searchCategories").jstree().get_node(n));
             });
         } else {
             resultLi = $('[id="' + node.id + 'Results"');
             if (resultLi !== undefined) // if we don't have any results for this track resultLi is undefined
                 _.each(resultLi, function(li) {
                     li.style = state ? "display" : "display: none";
                 });
         }
-        if (state)
-            $("#searchCategories").jstree().open_node(node);
-        else
-            $("#searchCategories").jstree().close_node(node);
     }
 
     function buildTree(node, cb) {
         cb.call(this, uiState.currentCategs[node.id]);
     }
 
     function makeCategoryTree() {
         var parentDiv = $("#searchCategories");
         $.jstree.defaults.core.themes.icons = false;
         $.jstree.defaults.core.themes.dots = true;
         $.jstree.defaults.contextmenu.show_at_node = false;
         parentDiv.jstree({
             'plugins' : ['contextmenu', 'checkbox'],
             'core': {
                 'data': buildTree,