8e79dfb0a847350cc64929a9498289d22072d9d8
larrym
  Thu Jun 28 17:38:36 2012 -0700
set hgFind.matches to highlight items choosen by users (#6330)
diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index 6fbb36e..4325bd3 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -2999,35 +2999,30 @@
     if (imageV2.isDirtyPage()) {
         // mark as non dirty to avoid infinite loop in chrome.
         $('#dirty').val('false');
         jQuery('body').css('cursor', 'wait');
             window.location = "../cgi-bin/hgTracks?hgsid=" + getHgsid();
             return false;
     }
     initVars();
 
     var db = getDb();
     if($('#positionInput').length) {
         suggestBox.init(db, hgTracks.assemblySupportsGeneSuggest,
              function (item) {
                   genomePos.set(item.id, commify(getSizeFromCoordinates(item.id)));
                   vis.makeTrackVisible($("#suggestTrack").val());
-// Initial attempt to fix #6330 - however, this does not deal with user editing the search box
-//                  if($('#hgFindMatches').length)
-//                      $('#hgFindMatches').val(item.internalId);
-//                  else
-//                      $(document.TrackForm || document.TrackHeaderForm).append("<input type='hidden' id='hgFindMatches' name='hgFind.matches' " + "value='" + item.internalId + "'>");
              },
              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) {