662c142fd7755be0eadbdfa5391b9548bc7f4ccd tdreszer Mon Aug 23 16:32:11 2010 -0700 Got popup box for descrition in findTracks working properly diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 6d5be83..5b85e16 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -1267,6 +1267,7 @@ $('#simpleSearch').keydown(searchKeydown); $('#descSearch').keydown(searchKeydown); $('#nameSearch').keydown(searchKeydown); + findTracksNormalize(); } if(typeof(trackDbJson) != "undefined" && trackDbJson != null) { @@ -1816,7 +1817,7 @@ function handleTrackUi(response, status) { // Take html from hgTrackUi and put it up as a modal dialog. - $('#hgTrackUiDialog').html("<div style='font-size:60% background: #FFFEE8' id='pop'>" + response + "</div>"); + $('#hgTrackUiDialog').html("<div id='pop'>" + response + "</div>"); $('#hgTrackUiDialog').dialog({ ajaxOptions: { // This doesn't work @@ -1836,6 +1837,7 @@ setAllVars($('#pop')); $(this).dialog("close"); if($('#imgTbl') != undefined && popUpTrackDescriptionOnly == false) + setTimeout('updateTrackImg(popUpTrackName);',50); // Necessary because ajax settings need to be done first updateTrackImg(popUpTrackName); }}, close: function() { @@ -2129,7 +2131,7 @@ } -function findTracksNormalizeFound() +function findTracksNormalize() { // Normalize the page based upon current state of all found tracks var selCbs = $('input.selCb'); @@ -2147,6 +2149,11 @@ findTracksCounts(); } +function findTracksNormalizeWaitOn() +{ // Put up wait mask then Normalize the page based upon current state of all found tracks + waitOnFunction( findTracksNormalize ); +} + function findTracksCheckAll(check) { // NOTE: Difficulties with "_sel" and "vis" controls: