29bc20158ae8382d65736b149da8071d1f4cfd76 kate Fri Jul 31 09:40:54 2020 -0700 Update position properly in track set link. refs #25601 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index f71ed6a..308f8d6 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -3265,35 +3265,35 @@ enterSelectsIdentical: true }); // Make option inputs select their associated radio buttons $('input[name="emPadding"]').keyup(function() { $('#virtModeType[value="exonMostly"]').attr('checked', true); }); $('input[name="gmPadding"]').keyup(function() { $('#virtModeType[value="geneMostly"]').attr('checked', true); }); $('#multiRegionsBedInput').keyup(function() { $('#virtModeType[value="customUrl"]').attr('checked', true); }); $('#singleAltHaploId').keyup(function() { $('#virtModeType[value="singleAltHaplo"]').attr('checked', true); }); } }; // Show the recommended track sets popup function showRecTrackSetsPopup() { - // Populate links with position + // Update links with current position $('a.recTrackSetLink').each(function() { var $this = $(this); - var _href = $this.attr("href"); - $this.attr("href", _href + genomePos.original); + var link = $this.attr("href").replace(/position=.*/, 'position='); + $this.attr("href", link + genomePos.original); }); $('#recTrackSetsPopup').dialog({width:'650'}); } function removeSessionPanel() { $('#recTrackSetsPanel').remove(); setCartVar("hgS_otherUserSessionLabel", "off", null, false); } // A function to show the keyboard help dialog box, bound to ? and called from the menu bar function showHotkeyHelp() { $("#hotkeyHelp").dialog({width:'600'}); } // A function to add an entry for the keyboard help dialog box to the menubar