e1c062cc0d7caa974d8c393da1970626e1706baf larrym Tue Sep 7 09:27:29 2010 -0700 fix problem in safari when groups are hidden diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index 9b4dc86..b9e4758 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -101,7 +101,7 @@ // We assume size has already been commified. // Either position or size may be null. if(position) { - // XXXX There are multiple tags with name == "position":^( + // There are multiple tags with name == "position" (one in TrackHeaderForm and another in TrackForm). var tags = document.getElementsByName("position"); for (var i = 0; i < tags.length; i++) { var ele = tags[i]; @@ -1485,7 +1485,10 @@ // We need to parse out more stuff to support resetting the position under imageV2 via ajax, but it's probably possible. // See comments below on safari problems. jQuery('body').css('cursor', 'wait'); + if(document.TrackForm) document.TrackForm.submit(); + else + document.TrackHeaderForm.submit(); } else { jQuery('body').css('cursor', ''); $.ajax({ @@ -1580,6 +1583,7 @@ } else if (!mapIsUpdateable) { jQuery('body').css('cursor', 'wait'); if(selectUpdated) { + // assert(document.TrackForm); document.TrackForm.submit(); } else { // add a hidden with new visibility value