d430ed42b69dc955443169c3ea4f4157ff66fe84
braney
Thu Dec 4 10:50:24 2025 -0800
get default hidden hgGene sections to open properly
diff --git src/hg/lib/web.c src/hg/lib/web.c
index 33c8f09842d..0a9b9bc4562 100644
--- src/hg/lib/web.c
+++ src/hg/lib/web.c
@@ -408,30 +408,50 @@
* May be used to maintain table layout without a proper section header */
{
webEndSection();
puts("
");
puts("");
puts( // TODO: Replace nested tables with CSS (difficulty is that tables are closed elsewhere)
"
\n\n"
" \n"
"
\n"
" | \n");
puts(" ");
}
+void webNewHiddenSectionHeaderEnd()
+/* Properly close header of hidden collapsible section on web page */
+{
+puts(" \n"
+ " "
+ " | \n"
+ " | | \n\n");
+}
+
+void webNewHiddenSection(char* format, ...)
+/* create a new hidden section on the web page */
+{
+va_list args;
+va_start(args, format);
+webNewSectionHeaderStart();
+vprintf(format, args);
+webNewHiddenSectionHeaderEnd();
+va_end(args);
+}
+
void webNewSectionHeaderEnd()
/* Properly close header of collapsible section on web page */
{
puts(" \n"
" "
" | \n"
" | | \n\n");
}
void webNewSection(char* format, ...)
/* create a new section on the web page */
{
va_list args;
va_start(args, format);
webNewSectionHeaderStart();
| | |
|