232278347cd59060df2a1483033c20e35c49429d tdreszer Fri Oct 1 15:08:52 2010 -0700 Fix for 'View in Browser' button didn't work because jquery selectors :hidden and :enabled appear to be incompatible diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 278c0fb..7531e90 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -2278,9 +2278,11 @@ } // The "view in browser" button should be enabled/disabled - if(justClicked) + if(justClicked) { + $('input.viewBtn').val('View in Browser'); findTracksCounts(); } +} function findTracksNormalize() @@ -2307,6 +2309,7 @@ // All should have their vis enabled/disabled appropriately (false means don't update cart) $(selCbs).each( function(i) { findTracksClickedOne(this,false); }); + $('input.viewBtn').val('View in Browser'); findTracksCounts(); return false; // Pressing button does nothing more } @@ -2331,7 +2334,7 @@ function findTracksViewButtoneText() { // Update View in Browser buttn text - var inputs = $('table#foundTracks').find('input[name!="hgsid"]:hidden:enabled'); + var inputs = $('table#foundTracks').find('input:hidden:enabled'); // Doesn't work!!! if( $(inputs).length == 0) $('input.viewBtn').val('Return to Browser'); else @@ -2340,7 +2343,7 @@ function findTracksCounts() {// Displays visible and checked track count - findTracksViewButtoneText(); + //findTracksViewButtoneText(); // Doesn't work!!! var counter = $('.selCbCount'); if(counter != undefined) { var selCbs = $("input.selCb");