b46a0eac56b1a6700ea6ab8b2383ed76e0b4f330 angie Thu Apr 28 13:17:04 2016 -0700 Adding 'Track Search' under 'Genome Browser' menu. refs #15277 notes 227, 229 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 8caf9be..c686985 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -3276,51 +3276,54 @@ $('#hgTracksDialog').dialog('option' , 'title' , popUpHgt.title); $('#hgTracksDialog').dialog('open'); } }; // 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() { - html = '<li><a title="List all possible keyboard shortcuts" href="javascript:showHotkeyHelp()">Keyboard Shortcuts</a><span class="shortcut">?</span></li>'; + var html = '<li><a title="List all possible keyboard shortcuts" href="javascript:showHotkeyHelp()">Keyboard Shortcuts</a><span class="shortcut">?</span></li>'; $('#help .last').before(html); html = '<span class="shortcut">s s</span>'; $('#sessionsMenuLink').after(html); html = '<span class="shortcut">c t</span>'; $('#customTracksMenuLink').after(html); html = '<span class="shortcut">t h</span>'; $('#trackHubsMenuLink').after(html); html = '<span class="shortcut">t b</span>'; $('#blatMenuLink').after(html); html = '<span class="shortcut">t t</span>'; $('#tableBrowserMenuLink').after(html); html = '<span class="shortcut">t i</span>'; $('#ispMenuLink').after(html); + html = '<span class="shortcut">t s</span>'; + $('#trackSearchMenuLink').after(html); + html = '<span class="shortcut">c f</span>'; $('#configureMenuLink').after(html); html = '<span class="shortcut">c r</span>'; $('#cartResetMenuLink').after(html); } // A function for the keyboard shortcut: // View DNA function gotoGetDnaPage() { var position = hgTracks.chromName+":"+hgTracks.winStart+"-"+hgTracks.winEnd; if (hgTracks.virtualSingleChrom && (pos.chrom.search("virt") === 0)) { position = genomePos.get().replace(/,/g,''); } else if (hgTracks.windows && hgTracks.nonVirtPosition) { position = hgTracks.nonVirtPosition;