822ba4b1f1e9c734a0c6ebc19f2b3c0233063746 galt Wed May 14 14:52:01 2025 -0700 Fix readonly blat input sequences, found by QA. refs #32750 diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 35db5935b93..532bccb1807 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -3495,31 +3495,31 @@ printf("<H3>Genomic Alignments</H3>"); else printf("<H3>%s/Genomic Alignments</H3>", item); if (showEvery || pslIsProtein(pslList)) printAlignmentsSimple(pslList, start, "htcBigPslAli", tdb->table, item); else printAlignmentsExtra(pslList, start, "htcBigPslAli", "htcBigPslAliInWindow", tdb->table, item); pslFreeList(&pslList); if (showEvery && sequencesFound > 0) { printf("<BR>\n"); printf("Input Sequences:<BR>\n"); - printf("<textarea rows='8' cols='60'>\n"); + printf("<textarea rows='8' cols='60' readonly>\n"); printf("%s", sequencesText->string); printf("</textarea>\n"); dyStringFree(&sequencesText); } printItemDetailsHtml(tdb, item); } void genericPslClick(struct sqlConnection *conn, struct trackDb *tdb, char *item, int start, char *subType) /* Handle click in generic psl track. */ { struct psl* pslList = getAlignments(conn, tdb->table, item); /* check if there is an alignment available for this sequence. This checks @@ -7411,31 +7411,31 @@ printf("<div id=hgUsualPslShowAll style='display: none'>\n"); // get hidden rest of alignments. pslxFileOpen(pslName, &qt, &tt, &lf); isProt = (qt == gftProt); while ((psl = pslNext(lf)) != NULL) { slAddHead(&pslList, psl); } slSort(&pslList, pslCmpQueryScore); lineFileClose(&lf); printAlignments(pslList, start, "htcUserAli", "user", ""); pslFreeList(&pslList); printf("<BR>\n"); printf("Input Sequences:<BR>\n"); -printf("<textarea rows='8' cols='60'>\n"); +printf("<textarea rows='8' cols='60' readonly>\n"); struct dnaSeq *oSeq, *oSeqList = faReadAllSeq(faName, !isProt); for (oSeq = oSeqList; oSeq != NULL; oSeq = oSeq->next) { printf(">%s\n",oSeq->name); printf("%s\n",oSeq->dna); printf("\n"); } printf("</textarea>\n"); printf("</div>\n"); jsInline("$('#hgUsualPslShowAllLink').click(function(){\n" " $('#hgUsualPslShowItem')[0].style.display = 'none';\n" " $('#hgUsualPslShowAll')[0].style.display = 'block';\n" " $('#hgUsualPslShowAllLink')[0].style.display = 'none';\n"