cb73c8cc35a7f7d20284102ab00d0b102c1a5f30 chmalee Tue Feb 17 14:33:42 2026 -0800 Make cf keyboard shortcut on hgTracks work even if not tracklist is present below the image, refs #34456 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 356b122ea36..25c93b14a81 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -3890,30 +3890,42 @@ $('body').append(dialogHtml); // Initialize the dialog $("#hubQuickDialog").dialog({ autoOpen: false, width: 600, height: 400, modal: true, // not showing a Cancel button, the standard X should be sufficient and the user can always use Esc }); // Show dialog $("#hubQuickDialog").dialog("open"); } +function gotoConfigurePage() { + let inp = $('input[name="hgTracksConfigPage"]'); + if (inp.length) { + inp.submit().click(); + } else { + // form a url to go there manually + let url = window.location.href; + url += "&hgTracksConfigPage=configure"; + window.location.assign(url); + } +} + function onHideAllGroupButtonClick(ev) { /* called when 'hide all' button is clicked on group blue bar menu */ let groupName = ev.target.getAttribute("data-group-name"); let visSelects = document.querySelectorAll(`tr[id^="${groupName}"] select`); let trackNames = []; let values = []; for (let sel of visSelects) { sel.value = "hide"; trackNames.push(sel.name); values.push("hide"); } cart.setVars(trackNames, values, null, false); imageV2.fullReload(); }