7c805cc237b7cbf8d84d732c43bb4f7a394e91d6 kate Tue Nov 12 10:10:41 2019 -0800 Add collapsible panel to details page when clicking on foot of interact. Requested by DanS during QA. refs #24409 diff --git src/hg/hgc/interactClick.c src/hg/hgc/interactClick.c index 71066c2..fcf1f70 100644 --- src/hg/hgc/interactClick.c +++ src/hg/hgc/interactClick.c @@ -453,47 +453,46 @@ sprintLongWithCommas(sizeBuf, end - start + 1); printf("<b>%s interactions region:</b> " "<a href='hgTracks?position=%s:%d-%d' target='_blank'>%s:%s-%s</a> ", item, chrom, start+1, end, chrom, startBuf, endBuf); printf(" %s bp<br>\n", sizeBuf); } else { // overlapping items, same start/end/name doInteractRegionDetails(tdb, inters); } multiRegionLink(tdb, item, inters); printf("</p>"); } -//genericHeader(tdb, item); -if (clusterMode && count > 1) +if (count > 1) { puts("<table>"); - jsBeginCollapsibleSectionFontSize(cart, tdb->track, "clusterInteractions", - "Show individual interactions in cluster", FALSE, "inherit"); + jsBeginCollapsibleSectionFontSize(cart, tdb->track, "interactions", + "Show individual interactions", FALSE, "inherit"); } static struct interactPlusRow *ipr = NULL; for (ipr = iprs; ipr != NULL; ipr = ipr->next) { if (count > 1) printf("<hr>\n"); doInteractItemDetails(tdb, ipr, item, count > 1); if (foot || (clusterMode && count > 1)) { struct interact *inter = ipr->interact; // just one interact (we have these in list for handling clusters earlier) inter->next = NULL; doInteractRegionDetails(tdb, inter); multiRegionLink(tdb, inter->name, inter); } if (count > 1 && !isEmptyTextField(ipr->interact->name) && sameString(ipr->interact->name, item)) printf("<hr>\n"); } -if (clusterMode && count > 1) +if (count > 1) { jsEndCollapsibleSection(); puts("</table>"); } }