70844f06b48c8a1404a1e171aa3afb47024804dd kate Wed Apr 22 14:35:07 2015 -0700 Removed ifdef (BUTTONS_BY_CSS). No functional change. This code added in 2011 is unused. (no redmine) diff --git src/hg/hgTracks/config.c src/hg/hgTracks/config.c index f756d1f..d8b3cf5 100644 --- src/hg/hgTracks/config.c +++ src/hg/hgTracks/config.c @@ -104,40 +104,33 @@ continue; /* check if group section should be displayed */ char *otherState; char *indicator; char *indicatorImg; boolean isOpen = !isCollapsedGroup(group); collapseGroupGoodies(isOpen, FALSE, &indicatorImg, &indicator, &otherState); hPrintf("<TR NOWRAP class='blueToggleBar'>"); hPrintf("<TH NOWRAP align='left' colspan=3>"); hPrintf("<table style='width:100%%;'><tr class='noData'><td style='text-align:left;'>"); hPrintf("\n<A NAME='%sGroup'></A>",group->name); hPrintf("<input type=hidden name='%s' id='%s' value=%d>", collapseGroupVar(group->name),collapseGroupVar(group->name), (isOpen?0:1)); -//#define BUTTONS_BY_CSS_NOT_HERE -#ifdef BUTTONS_BY_CSS_NOT_HERE - hPrintf("<span class='pmButton toggleButton' onclick=\"vis.toggleForGroup(this,'%s')\" " - "id='%s_button' title='%s this group'>%s</span> ", - group->name, group->name, isOpen?"Collapse":"Expand", indicator); -#else///ifndef BUTTONS_BY_CSS_NOT_HERE hPrintf("<IMG class='toggleButton' onclick=\"return vis.toggleForGroup(this,'%s');\" " "id='%s_button' src='%s' alt='%s' title='%s this group'> ", group->name, group->name, indicatorImg, indicator,isOpen?"Collapse":"Expand"); -#endif///ndef BUTTONS_BY_CSS_NOT_HERE hPrintf("<B> %s</B> ", group->label); hPrintf(" "); hPrintf("</td><td style='text-align:right;'>\n"); hPrintf("<INPUT TYPE=SUBMIT NAME=\"%s\" VALUE=\"%s\" " "onClick=\"document.mainForm.%s.value='%s'; %s\" " "title='Hide all tracks in this groups'>", configHideAll, "hide all", configGroupTarget, group->name, jsSetVerticalPosition("mainForm")); hPrintf(" "); hPrintf("<INPUT TYPE=SUBMIT NAME=\"%s\" VALUE=\"%s\" " "onClick=\"document.mainForm.%s.value='%s'; %s\" " "title='Show all tracks in this groups'>", configShowAll, "show all", configGroupTarget, group->name, jsSetVerticalPosition("mainForm")); hPrintf(" ");