358c7f3665dca67c180f6b22ae11f6bf33d201ae
angie
Tue Jan 11 10:45:13 2011 -0800
Moved hgc.c's {begin,end}CollapsibleSection to jsHelper.c:js{Begin,End}CollapsibleSection so I can use in hgTrackUi.
diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index 730cced..54ebb4b 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -903,59 +903,30 @@
/* Wrapper to call printCustomUrlWithLabel using the url setting in trackDb */
{
char urlSetting[10];
safef(urlSetting, sizeof(urlSetting), "url");
printCustomUrlWithLabel(tdb, itemName, itemName, urlSetting, encode);
}
void printOtherCustomUrl(struct trackDb *tdb, char *itemName, char* urlSetting, boolean encode)
/* Wrapper to call printCustomUrlWithLabel to use another url setting other than url in trackDb e.g. url2, this allows the use of multiple urls for a track
to be set in trackDb. */
{
printCustomUrlWithLabel(tdb, itemName, itemName, urlSetting, encode);
}
-void beginCollapsibleSection(char *track, char *section, char *sectionTitle, boolean isOpenDefault)
-/* Make the hidden input, collapse/expand button and
needed for
-* hgTracks.js's setTableRowVisibility(). Caller needs to have already creates a
\n");
iCol = 0;
}
}
if (iCol != 0)
{
// fill in last row
for (; iCol < numCols; iCol++)
printf("
\n");
printf("\n");
}
printf("
\n");
printf("
\n");
printf("Chimera help\n");
-endCollapsibleSection();
+jsEndCollapsibleSection();
}
static void checkForLsSnpMappings(struct sqlConnection *conn, char *snpTrack, char *snpId)
/* check if this SNP is mapped to any protein by LS-SNP, and if so print
* the information. */
{
struct slName *pdbIds = lsSnpPdbChimeraGetSnpPdbs(conn, snpId);
if (pdbIds != NULL)
{
printLsSnpMappings(conn, pdbIds, snpTrack, snpId);
slFreeList(&pdbIds);
}
}
void doSnpWithVersion(struct trackDb *tdb, char *itemName, int version)