mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 17:28:31 +02:00
updates
This commit is contained in:
parent
f440f1ac1c
commit
7e0cdb813c
2 changed files with 3 additions and 1 deletions
|
@ -2925,6 +2925,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
const selectParent = select?.parentElement;
|
||||
const suborgContainer = document.getElementById("suborganization-container");
|
||||
const suborgDetailsContainer = document.getElementById("suborganization-container__details");
|
||||
const subOrgCreateNewOption = document.getElementById("option-to-add-suborg").value
|
||||
if (!radios || !select || !selectParent || !suborgContainer || !suborgDetailsContainer) return;
|
||||
|
||||
// requestingSuborganization: This just broadly determines if they're requesting a suborg at all
|
||||
|
@ -2949,7 +2950,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
|
||||
// Add fake "other" option to sub_organization select
|
||||
if (select && !Array.from(select.options).some(option => option.value === "other")) {
|
||||
select.add(new Option("Other (enter your suborganization manually)", "other"));
|
||||
select.add(new Option(subOrgCreateNewOption, "other"));
|
||||
}
|
||||
|
||||
if (requestingNewSuborganization.value === "True") {
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block form_fields %}
|
||||
<input id="option-to-add-suborg" value="Other (enter your suborganization manually)"/>
|
||||
<fieldset class="usa-fieldset">
|
||||
<legend>
|
||||
<h2>Who will use the domain you’re requesting?</h2>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue