ed39331147a0cd7868921ef7bdf6b3f022a49c1b kate Tue Mar 16 18:10:57 2021 -0700 Customize multi-region config help message to current status and disable exit button when not in MR mode. refs #26385 diff --git src/hg/hgTracks/config.c src/hg/hgTracks/config.c index a403088..3e876bf 100644 --- src/hg/hgTracks/config.c +++ src/hg/hgTracks/config.c @@ -738,41 +738,43 @@ struct track *trackList; struct track *ideoTrack; struct group *groupList; int vis = -2; configInitTrackList(vis, &groupTarget, &trackList, &ideoTrack, &groupList); hPrintf("<FORM ACTION=\"%s\" NAME=\"mainForm\" METHOD=%s>\n", hgTracksName(), cartUsualString(cart, "formMethod", "POST")); webStartWrapperDetailedNoArgs(cart, database, "", "", FALSE, FALSE, FALSE, FALSE); cartSaveSession(cart); hPrintf("Multi-region display 'slices' the genome to allow viewing discontinuous regions" - " together in the browser window." - " Select the desired viewing mode below."); + " together in the browser window. "); +// mode-specific message filled in by JS when dialog opened +hPrintf("<span id='multiRegionConfigStatusMsg'></span>"); hPrintf("<p></p>"); hTableStart(); virtModeType = cartUsualString(cart, "virtModeType", virtModeType); hPrintf("<TR><TD>"); cgiMakeRadioButton("virtModeType", "default", sameWord("default", virtModeType)); -hPrintf("</TD><TD>"); +hPrintf("</TD>"); +hPrintf("<TD id='virtModeTypeDefaultLabel'>"); hPrintf("Exit multi-region mode"); hPrintf("</TD></TR>\n"); struct sqlConnection *conn = NULL; if (!trackHubDatabase(database)) // no db conn for assembly hubs conn = hAllocConn(database); // Do we have a gene table for exonMostly? findBestEMGeneTable(trackList); if (emGeneTable) { hPrintf("<TR><TD>"); cgiMakeRadioButton("virtModeType", "exonMostly", sameWord("exonMostly", virtModeType)); hPrintf("</TD><TD>"); hPrintf("Show exons using %s. Use padding of: ", emGeneTrack->shortLabel);