848d9a9fb008157a87bf7e4d69a4e50f66b69798 max Mon Jan 12 06:22:38 2026 -0800 allowing changes to custom tracks even when uploaded by URL,, refs #35492 diff --git src/hg/hgCustom/hgCustom.c src/hg/hgCustom/hgCustom.c index c22a3ec3eee..c622774dd07 100644 --- src/hg/hgCustom/hgCustom.c +++ src/hg/hgCustom/hgCustom.c @@ -251,75 +251,65 @@ freeMem(tmpString); } cgiSimpleTableStart(); /* first rows for update form are for track and browser line entry */ if (isUpdateForm) { /* row for instructions */ cgiSimpleTableRowStart(); cgiSimpleTableFieldStart(); if (dataUrl) { printf( "" - "To update this data, which was loaded via a URL:
" - "1. Click Submit on this page to navigate to the Manage Custom Tracks page.
" - "2. In the Update column, select the checkbox next to the corresponding custom track.
" - "3. Click the Update button at the top of the column to apply the changes.\n

"); + "The custom track was loaded from a URL. To update it:
" + "1. Go to My Data > Custom Tracks.
" + "2. In the Update column, select the checkbox next to custom tracks that you want to update.
" + "3. Click the Update button at the top of the column to reload the data.\n

", cartSessionId(cart)); - puts("Current loaded configuration (do not update here):"); + puts("Current custom track configuration (changes you make here will be lost when you update the track):"); } else { puts("Edit configuration:"); } cgiTableFieldEnd(); cgiTableField(" "); puts(""); if (warnOnly) { cgiMakeButtonWithOnClick("ContinueWithWarn", "Continue with Warning", NULL, "return submitClick(this);"); printf(" "); jsInline( "$('textarea').change(function() {\n" " $('#ContinueWithWarn').hide();\n" "});\n"); } cgiMakeButtonWithOnClick("Submit", "Submit", NULL, "return submitClick(this);"); printf("\n"); cgiTableFieldEnd(); cgiTableField(" "); cgiTableRowEnd(); /* row for text entry box */ cgiSimpleTableRowStart(); puts(""); - if (dataUrl) - { - /* can't update via pasting if loaded from URL */ - cgiMakeTextAreaDisableable(hgCtConfigLines, - cartUsualString(cart, hgCtConfigLines, customTrackUserConfig(ct)), - CONFIG_ENTRY_ROWS, TEXT_ENTRY_COLS, TRUE); - } - else - { cgiMakeTextArea(hgCtConfigLines, cartUsualString(cart, hgCtConfigLines, customTrackUserConfig(ct)), CONFIG_ENTRY_ROWS, TEXT_ENTRY_COLS); - } cgiTableFieldEnd(); cgiSimpleTableFieldStart(); cgiSimpleTableStart(); cgiSimpleTableRowStart(); cgiSimpleTableFieldStart(); cgiTableFieldEnd(); cgiTableRowEnd(); cgiTableEnd(); cgiTableFieldEnd(); cgiTableRowEnd(); }