983a9111e0930f4e3902b30390f2ee20b74513a1 kate Tue Jul 28 14:04:15 2020 -0700 Remove recommended track set from cart when loading new session or changing assembly, or when panel has been closed by user click on X. refs #25601 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 2679b52..f71ed6a 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -3276,30 +3276,31 @@ }; // Show the recommended track sets popup function showRecTrackSetsPopup() { // Populate links with position $('a.recTrackSetLink').each(function() { var $this = $(this); var _href = $this.attr("href"); $this.attr("href", _href + 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 // and add text that indicates the shortcuts to many static menubar items as suggested by good old IBM CUA/SAA function addKeyboardHelpEntries() { var html = '<li><a id="keybShorts" title="List all possible keyboard shortcuts" href="#">Keyboard Shortcuts</a><span class="shortcut">?</span></li>'; $('#help .last').before(html); $("#keybShorts").click( function(){showHotkeyHelp();} ); html = '<span class="shortcut">s s</span>';