692065227f9b0f987144c4608ffd6c31ce2af35d kate Mon Jul 29 17:45:05 2019 -0700 Add support for styling submit buttons to indicate if they have been pressed (in modal mode). Do this for reverse and multi-region buttons on hgTracks. refs #23922 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index 2b5f714..253145e 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -8477,39 +8477,42 @@ hasCustomTracks ? "Manage your custom tracks" : "Add your own custom tracks"); jsOnEventById("click", "ct_add", "document.customTrackForm.submit();return false;"); hPrintf(" "); if (hubConnectTableExists()) { hPrintf(""); jsOnEventById("click", "th_form", "document.trackHubForm.submit();"); hPrintf(" "); } hButtonWithMsg("hgTracksConfigPage", "configure","Configure image and track selection"); hPrintf(" "); - hButtonWithOnClick("hgTracksConfigMultiRegionPage", - "multi-region", "Configure multi-region display options", "popUpHgt.hgTracks('multi-region config'); return false;"); + hButtonMaybePressed("hgTracksConfigMultiRegionPage", "multi-region", + "Configure multi-region display options", + "popUpHgt.hgTracks('multi-region config'); return false;", + virtMode); hPrintf(" "); if (!hIsGsidServer()) { - hButtonWithMsg("hgt.toggleRevCmplDisp", "reverse", + hButtonMaybePressed("hgt.toggleRevCmplDisp", "reverse", revCmplDisp ? "Show forward strand at this location" - : "Show reverse strand at this location"); + : "Show reverse strand at this location", + NULL, revCmplDisp ? TRUE : FALSE); hPrintf(" "); } hButtonWithOnClick("hgt.setWidth", "resize", "Resize image width to browser window size", "hgTracksSetWidth()"); hPrintf(" "); hButtonWithMsg("hgt.refresh", "refresh","Refresh image"); hPrintf("
\n"); if( chromosomeColorsMade ) { hPrintf("Chromosome Color Key:
"); hPrintf("
\n"); }