c0a6706dea55f019923332c5f51dfe64fc420dc8 lrnassar Wed Sep 9 12:15:27 2026 -0700 Comment touch-ups from CR: reattach delayFraction's continuation comment, drop an imprecise history aside in the counter comment. refs #38293 diff --git src/hg/js/hgBlat.js src/hg/js/hgBlat.js index dd80fbc5c6f..6f9923b1ea0 100644 --- src/hg/js/hgBlat.js +++ src/hg/js/hgBlat.js @@ -711,31 +711,31 @@ function blatOpts(list, cur) { return list.map(function(v) { return ``; }).join(''); } function blatFormCount() { // Live character count under the textarea. Only these two nodes are touched on input - the // textarea itself is never re-rendered, so the caret stays where the user put it. var ta = document.getElementById('blatUserSeq'); var out = document.getElementById('blatCountText'); if (!ta || !out) { return; } var n = ta.value.replace(/[^A-Za-z*]/g, '').length; // The per-sequence limit for the selected query type, passed through from the C constants in - // hgBlat.c so the two cannot drift apart (the page claimed a stale 25,000 for years). + // hgBlat.c so the two cannot drift apart. // "BLAT's guess" counts against the DNA limit - the common case; a protein query that only // the server recognizes as such is still rejected there with a warning linking the full // limits in the docs. var cfg = hgBlatFormData; var typeSel = document.querySelector('#blatFormBox select[name=type]'); var type = typeSel ? typeSel.value : ''; var isTx = (type === 'protein' || type === 'translated RNA' || type === 'translated DNA'); var max = isTx ? cfg.maxSingleTx : cfg.maxSingleDna; out.textContent = blatFmt(n) + ' of ' + blatFmt(max) + ' characters'; out.classList.toggle('over', n > max); } function blatFormTab(showUpload) { $('#blatTabPaste').toggleClass('on', !showUpload); $('#blatTabUpload').toggleClass('on', showUpload);