f9803408404df869b2927caeb12ff463e6cbfed7 tdreszer Tue May 10 16:28:31 2011 -0700 Last fix to SNPs Expandable options worked in IE in compatability mode but not IE8. Now it does. diff --git src/hg/lib/jsHelper.c src/hg/lib/jsHelper.c index 48e1784..5dc100a 100644 --- src/hg/lib/jsHelper.c +++ src/hg/lib/jsHelper.c @@ -453,36 +453,37 @@ } //else // warn("already looked up advancedJsEnabled"); // got msg 41 times in one page! return advancedJsEnabled; } void jsBeginCollapsibleSection(struct cart *cart, char *track, char *section, char *sectionTitle, boolean isOpenDefault) /* Make the hidden input, collapse/expand button and needed for utils.js's * setTableRowVisibility(). Caller needs to have already created a and . */ { char collapseGroupVar[512]; safef(collapseGroupVar, sizeof(collapseGroupVar), "%s.section_%s_close", track, section); boolean isOpen = !cartUsualBoolean(cart, collapseGroupVar, !isOpenDefault); -printf("\n", + "id='%s_button' src='%s' alt='%s' title='%s this section' class='bigBlue'" + " style='cursor:pointer;'>\n", section, track, section, buttonImage, (isOpen ? "-" : "+"), (isOpen ? "Collapse": "Expand")); -printf("\n", sectionTitle); +printf(" %s\n", sectionTitle); printf(". */ { puts(""); }
\n", +// Both plus button and title are now in same +// but still colspan=2 because we are lib code and callers own the table. +printf("
\n"); +printf("\n", collapseGroupVar, collapseGroupVar, isOpen ? "0" : "1"); -printf("\n", - cgiScriptName(), cartSidUrlString(cart), collapseGroupVar, (isOpen ? "1" : "0"), section); char *buttonImage = (isOpen ? "../images/remove_sm.gif" : "../images/add_sm.gif"); printf("\"%s\"" - " %s
", isOpen ? "" : "style='display: none' ", section, 1); } void jsEndCollapsibleSection() /* End the collapsible