8a9c3a429870da4aefcea220fc9ba674617771a8 larrym Thu Jul 5 11:07:46 2012 -0700 add context-sensitive help for hgCustom diff --git src/hg/lib/web.c src/hg/lib/web.c index 5b5da1b..d8379ed 100644 --- src/hg/lib/web.c +++ src/hg/lib/web.c @@ -1340,30 +1340,31 @@ if(match[1].rm_so == match[1].rm_eo) dyStringAppend(dy, "?"); dyStringAppend(dy, uiVars); if(match[1].rm_so != match[1].rm_eo) dyStringAppend(dy, "&"); } if(offset < len) dyStringAppend(dy, menuStr + offset); freez(&menuStr); menuStr = dyStringCannibalize(&dy); if(!loginSystemEnabled()) stripRegEx(menuStr, "<\\!-- LOGIN_START -->.*<\\!-- LOGIN_END -->", REG_ICASE); if(scriptName) { + // Provide context sensitive help links for some CGIs. if (endsWith(scriptName, "hgBlat")) { contextSpecificHelp = "../goldenPath/help/hgTracksHelp.html#BLATAlign"; contextSpecificHelpLabel = "Help on Blat"; } else if (endsWith(scriptName, "hgHubConnect")) { contextSpecificHelp = "../goldenPath/help/hgTrackHubHelp.html"; contextSpecificHelpLabel = "Help on Track Hubs"; } else if (endsWith(scriptName, "hgNear")) { contextSpecificHelp = "../goldenPath/help/hgNearHelp.html"; contextSpecificHelpLabel = "Help on Gene Sorter"; } @@ -1380,25 +1381,29 @@ else if (endsWith(scriptName, "hgSession")) { contextSpecificHelp = "../goldenPath/help/hgSessionHelp.html"; contextSpecificHelpLabel = "Help on Sessions"; } else if (endsWith(scriptName, "pbGateway")) { contextSpecificHelp = "../goldenPath/help/pbTracksHelpFiles/pbTracksHelp.shtml"; contextSpecificHelpLabel = "Help on Proteome Browser"; } else if (endsWith(scriptName, "hgVisiGene")) { contextSpecificHelp = "../goldenPath/help/hgTracksHelp.html#VisiGeneHelp"; contextSpecificHelpLabel = "Help on VisiGene"; } + else if (endsWith(scriptName, "hgCustom")) + { + contextSpecificHelp = "../goldenPath/help/customTrack.html"; + contextSpecificHelpLabel = "Help on Custom Tracks"; + } } if(contextSpecificHelp) { char buf[1024]; safef(buf, sizeof(buf), "