3355ee891a397eaf766e37b869c1fb9c40a9ceea tdreszer Fri Dec 17 16:39:07 2010 -0800 Fixed rightClick hide when track is a superTrack child diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index ab32555..207b552 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -1641,31 +1641,31 @@ location.assign(selectedMenuItem.href); } else { // if( cmd in 'hide','dense','squish','pack','full','show' ) // Change visibility settings: // // First change the select on our form: var id = selectedMenuItem.id; var rec = trackDbJson[id]; var selectUpdated = updateVisibility(id, cmd); // Now change the track image if(imageV2 && cmd == 'hide') { // Hide local display of this track and update server side cart. // Subtracks controlled by 2 settings so del vis and set sel=0. Others, just set vis hide. if(rec.parentTrack != undefined) - setCartVars( [ id, id+"_sel" ], [ "[]", 0 ] ); // Don't set '_sel" to [] because default gets used, but we are explicitly hiding this! + setCartVars( [ id, id+"_sel" ], [ 'hide', 0 ] ); // Don't set '_sel" to [] because default gets used, but we are explicitly hiding this! else setCartVar(id, 'hide' ); $('#tr_' + id).remove(); initImgTblButtons(); loadImgAreaSelect(false); } else if (!mapIsUpdateable) { jQuery('body').css('cursor', 'wait'); if(selectUpdated) { // assert(document.TrackForm); document.TrackForm.submit(); } else { // add a hidden with new visibility value var form = $(document.TrackHeaderForm); $("<input type='hidden' name='" + id + "'value='" + cmd + "'>").appendTo(form); document.TrackHeaderForm.submit();