bdb00f30d32292da822ca7fd6f65479e0917e295 tdreszer Wed Oct 19 16:26:08 2011 -0700 The objectification of hgTracks.js. Added a bit of structure to this one js file. Large changes but alnmost no functional change. diff --git src/hg/hgTracks/config.c src/hg/hgTracks/config.c index e46f990..d8fd1ed 100644 --- src/hg/hgTracks/config.c +++ src/hg/hgTracks/config.c @@ -99,31 +99,31 @@ /* check if group section should be displayed */ char *otherState; char *indicator; char *indicatorImg; boolean isOpen = !isCollapsedGroup(group); collapseGroupGoodies(isOpen, FALSE, &indicatorImg, &indicator, &otherState); hPrintf("\n",HG_COL_INSIDE); hPrintf(""); hPrintf("
"); hPrintf("
"); hPrintf("\n",group->name); hPrintf("", collapseGroupVar(group->name),collapseGroupVar(group->name), (isOpen?0:1)); - hPrintf("%s  ", + hPrintf("%s  ", group->name, group->name, indicatorImg, indicator,isOpen?"Collapse":"Expand"); hPrintf(" %s ", group->label); hPrintf("   "); hPrintf("\n"); hPrintf("", configHideAll, "hide all", configGroupTarget, group->name, jsSetVerticalPosition("mainForm")); hPrintf(" "); hPrintf("", configShowAll, "show all", configGroupTarget, group->name, jsSetVerticalPosition("mainForm")); hPrintf(" "); hPrintf("Control track and group visibility more selectively below."); trackConfig(trackList, groupList, groupTarget, vis); dyStringFree(&title); freez(&groupTarget); webEndSectionTables(); hPrintf(""); } void configPage() /* Put up configuration page. */ { configPageSetTrackVis(-2); }