daf6b6d8252538b7cc1c8aaad253d5a6fb1aaec4 chmalee Tue Sep 24 12:35:44 2019 -0700 Fixing dumb mistake in hub search where I initialized a variable in two different spots, refs #23812 diff --git src/hg/js/hgHubConnect.js src/hg/js/hgHubConnect.js index a273807..c8c5e15 100644 --- src/hg/js/hgHubConnect.js +++ src/hg/js/hgHubConnect.js @@ -99,43 +99,36 @@ arrId = '#_' + hubId; $(treeDiv).jstree({ 'plugins' : ['contextmenu'], 'core' : { 'data': function(node, cb) { if (node.id === '#') { cb([{"text" : "Search details ...", "id": arrId, "children": true}]); } else { cb(trackData[""+node.id]); } }, 'dbclick_toggle': false } }) .on('select_node.jstree', function(e, data) { - data.instance.open_node(data.node); + $(e.target).instance.open_node(data.node); }); // jstree }); // each div } else { // validating hub, no contextmenu and easier tree building console.log("regular trackData build"); treeDiv = $('#validateHubResult'); treeDiv.jstree({ 'core' : { 'data' : buildTracks, 'dbclick_toggle': false } }); treeDiv.on('select_node.jstree', function(e, data) { $(e.target).instance.open_node(data.node); }); } } // init return { init: init }; }()); - -$(function () { - console.time("init time"); - // the parameter describes whether we have searched or are validating - hubSearchTree.init(false); - console.timeEnd("init time"); -});