369fd3ec5b7eaf247fd3da2c8c9377a474161c14 hiram Tue Feb 22 10:34:33 2022 -0800 fixup correct text for content on filled-in form fields refs #28930 diff --git src/hg/js/gar.js src/hg/js/gar.js index eec2e3d..18f36a6 100644 --- src/hg/js/gar.js +++ src/hg/js/gar.js @@ -462,33 +462,34 @@ gar.betterCommonName.value = comName; gar.sciName.textContent = sciName; gar.asmIdText.textContent = e.name; // gar.modalForm.name.value = "some name"; // gar.modalForm.email.value = "some@email.com"; garStatus.innerHTML = " "; // check if this asmId already submitted if (gar.completedAsmId.get(e.name)) { gar.submitButton.value = "request completed"; gar.submitButton.disabled = false; gar.modalWrapper.className = "overlay"; return; } gar.completedAsmId.set(e.name, true); } else { - gar.commonName.textContent = "enter information about desired assembly in the 'Other comments'"; - gar.sciName.textContent = "including the scientific name"; - gar.asmIdText.textContent = "and the GCx accession identifer"; + gar.betterCommonName.value = ""; + gar.commonName.textContent = "enter information about desired assembly in the 'Other comments' field"; + gar.sciName.textContent = "include the scientific name"; + gar.asmIdText.textContent = "include the GenBank or RefSeq accession identifier"; } gar.submitButton.value = "Submit request"; gar.submitButton.disabled = false; gar.modalWrapper.className = "overlay"; var overflow = gar.modalWindow.offsetHeight - document.documentElement.clientHeight; if(overflow > 0) { gar.modalWindow.style.maxHeight = (parseInt(window.getComputedStyle(gar.modalWindow).height) - overflow) + "px"; } gar.modalWindow.style.marginTop = (-gar.modalWindow.offsetHeight)/2 + "px"; gar.modalWindow.style.marginLeft = (-gar.modalWindow.offsetWidth)/2 + "px"; if (e.preventDefault) { e.preventDefault(); } else { e.returnValue = false; }