e8e125d39087195e7dad2f615255294838b7cdbd
tdreszer
  Fri Oct 21 12:42:28 2011 -0700
Objectified the js for findTracks.  Also fixed redmine 5692
diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js
index 8f3bd1a..fe78332 100644
--- src/hg/js/hgTracks.js
+++ src/hg/js/hgTracks.js
@@ -2912,42 +2912,42 @@
             // $('#searchSubmit').click();
         }
     },
 
     init: function ()
     {
         // Track search uses tabs
         if($("#tabs").length > 0) {
             // Search page specific code
 
             var val = $('#currentTab').val();
             $("#tabs").tabs({
                                 show: function(event, ui) {
                                     $('#currentTab').val(ui.panel.id);
                                 },
-                                select: function(event, ui) { findTracksSwitchTabs(ui); }
+                                select: function(event, ui) { findTracks.switchTabs(ui); }
                             });
             $('#tabs').show();
             $("#tabs").tabs('option', 'selected', '#' + val);
             if(val =='simpleTab' && $('div#found').length < 1) {
                 $('input#simpleSearch').focus();
             }
             $("#tabs").css('font-family', jQuery('body').css('font-family'));
             $("#tabs").css('font-size', jQuery('body').css('font-size'));
             $('.submitOnEnter').keydown(trackSearch.searchKeydown);
-            findTracksNormalize();
-            updateMetaDataHelpLinks(0);
+            findTracks.normalize();
+            findTracks.updateMdbHelp(0);
         }
     }
 }
 
 
 /*
 
 // wait for jStore to prepare the storage engine (this token reload code is experimental and currently dead).
 jQuery.jStore && jQuery.jStore.ready(function(engine) {
     // alert(engine.jri);
     // wait for the storage engine to be ready.
     engine.ready(function(){
         var engine = this;
         var newToken = hgTracks.time;
         if(newToken) {