e8aeb1dcada5968de429029c2496185abae6f8f1 galt Fri Oct 23 02:26:23 2020 -0700 Handle single-dimension matrix in hui.c, and handle missing g track tag in hui.js. refs #26398 diff --git src/hg/js/hui.js src/hg/js/hui.js index 4aee971..5444e71 100644 --- src/hg/js/hui.js +++ src/hg/js/hui.js @@ -653,32 +653,34 @@ // Close the cfg controls in the subtracks $("table.subtracks").each( function (i) { subtrackCfgHideAll(this);} ); return true; } function hideOrShowSubtrack(obj) { // This can show/hide a tablerow that contains a specific object // Containing <tr>'s must be id'd with 'tr_' + obj.id // Also, this relies upon the "displaySubtracks" radio button control var tr = normed($(obj).parents('tr#tr_'+obj.id)); if (tr) { if (!obj.checked || isFauxDisabled(obj,true)) { - var g = getTrack(); + var g = common.track; var sel = normed($("#"+g+"_displaySubtracks_selected")); + if (!sel) + sel = normed($("#displaySubtracks_selected")); if (sel.checked && sel.value === "selected") { $(tr).hide(); return; } } $(tr).show(); } } function showSubTrackCheckBoxes(onlySelected) { // If a Subtrack configuration page has show "only selected subtracks" option, // This can show/hide tablerows that contain the checkboxes // Containing <tr>'s must be id'd with 'tr_' + the checkbox id,