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( "<span style='color:RED'>" - "To update this data, which was loaded via a URL:<br>" - "1. Click Submit on this page to navigate to the <i>Manage Custom Tracks</i> page.<br>" - "2. In the <b>Update</b> column, select the checkbox next to the corresponding custom track.<br>" - "3. Click the <b>Update</b> button at the top of the column to apply the changes.\n</span><p><p> "); + "The custom track was loaded from a URL. To update it:<br>" + "1. Go to <a href='hgCustom?hgsid=%s'>My Data > Custom Tracks</a>.<br>" + "2. In the <b>Update</b> column, select the checkbox next to custom tracks that you want to update.<br>" + "3. Click the <b>Update</b> button at the top of the column to reload the data.\n</span><p><p> ", 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("<TD ALIGN='RIGHT'>"); 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("<img id='loadingImg' src='../images/loading.gif' />\n"); cgiTableFieldEnd(); cgiTableField(" "); cgiTableRowEnd(); /* row for text entry box */ cgiSimpleTableRowStart(); puts("<TD COLSPAN=2>"); - 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(); }