55fc0706e4d3bbda73bc3e20c3ce721eae33c183 larrym Fri Jun 22 14:53:19 2012 -0700 move comment back to the right place diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 40f28af..caf040c 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -3003,30 +3003,34 @@ window.location = "../cgi-bin/hgTracks?hgsid=" + getHgsid(); return false; } initVars(); var db = getDb(); suggestBox.init(db, hgTracks.assemblySupportsGeneSuggest, function (position) { genomePos.set(position, commify(getSizeFromCoordinates(position))); vis.makeTrackVisible($("#suggestTrack").val()); }, function (position) { genomePos.set(position, commify(getSizeFromCoordinates(position))); }); + // I want to set focus to the suggest element, but unforunately that prevents PgUp/PgDn from + // working, which is a major annoyance. + // $('#positionInput').focus(); + // Convert map AREA gets to post the form, ensuring that cart variables are kept up to date (but turn this off for search form). if($("FORM").length > 0 && $('#trackSearch').length == 0) { var allLinks = $('a'); $( allLinks ).unbind('click'); $( allLinks ).click( posting.saveSettings ); } if($('#pdfLink').length == 1) { $('#pdfLink').click(function(i) { var thisForm=$('#TrackForm'); if(thisForm != undefined && $(thisForm).length == 1) { //alert("posting form:"+$(thisForm).attr('name')); updateOrMakeNamedVariable($(thisForm),'hgt.psOutput','on'); return postTheForm($(thisForm).attr('name'),this.href); } return true;