e10d4e543c21831fa3bdc8fb515de9eb2411223b
galt
Mon Apr 14 23:15:21 2025 -0700
Fixing instructions in hgCustom for URL-only custom tracks. fixes #20985.
diff --git src/hg/hgCustom/hgCustom.c src/hg/hgCustom/hgCustom.c
index 2bede5d24db..05bace98840 100644
--- src/hg/hgCustom/hgCustom.c
+++ src/hg/hgCustom/hgCustom.c
@@ -350,31 +350,37 @@
" $('#ContinueWithWarn').hide();\n"
"});\n");
}
cgiMakeButtonWithOnClick("Submit", "Submit", NULL, "return submitClick(this);");
printf("
\n");
cgiTableFieldEnd();
}
cgiTableRowEnd();
/* next row - text entry box for data, and clear button */
cgiSimpleTableRowStart();
puts("
");
if (dataUrl)
{
/* can't update via pasting if loaded from URL */
- safef(buf, sizeof buf, "Data was uploaded from URL: %s\nTo see changes made to the data at the URL, re-load the URL on the \"Add custom tracks\" page.", ctDataUrl(ct));
+ safef(buf, sizeof buf, "Data was uploaded from URL: %s\n"
+ "\n"
+ "To update this data, press submit to go to \"Manage Custom Tracks\" page, "
+ "select the checkbox box in the update column beside this custom track, "
+ "and press the update button at the top of the column. "
+ , ctDataUrl(ct));
+
cgiMakeTextAreaDisableable(hgCtDataText, buf,
TEXT_ENTRY_ROWS, TEXT_ENTRY_COLS, TRUE);
}
else
{
int rows = (isUpdateForm ? TEXT_ENTRY_ROWS - CONFIG_ENTRY_ROWS :
TEXT_ENTRY_ROWS);
cgiMakeTextArea(hgCtDataText, cartUsualString(cart, hgCtDataText, ""),
rows, TEXT_ENTRY_COLS);
}
cgiTableFieldEnd();
cgiSimpleTableFieldStart();
cgiSimpleTableStart();
|