mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 21:19:42 +02:00
Remove js for style
This commit is contained in:
parent
04365fbf87
commit
0b69a5b0c2
2 changed files with 2 additions and 8 deletions
|
@ -2938,13 +2938,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||||
if (radio != null) requestingSuborganization = radio?.checked && radio.value === "True";
|
if (radio != null) requestingSuborganization = radio?.checked && radio.value === "True";
|
||||||
requestingSuborganization ? showElement(suborgContainer) : hideElement(suborgContainer);
|
requestingSuborganization ? showElement(suborgContainer) : hideElement(suborgContainer);
|
||||||
requestingNewSuborganization.value = requestingSuborganization && select.value === "other" ? "True" : "False";
|
requestingNewSuborganization.value = requestingSuborganization && select.value === "other" ? "True" : "False";
|
||||||
if (requestingNewSuborganization.value === "True") {
|
requestingNewSuborganization.value === "True" ? showElement(suborgDetailsContainer) : hideElement(suborgDetailsContainer);
|
||||||
selectParent.classList.add("padding-bottom-2");
|
|
||||||
showElement(suborgDetailsContainer);
|
|
||||||
}else {
|
|
||||||
selectParent.classList.remove("padding-bottom-2");
|
|
||||||
hideElement(suborgDetailsContainer);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add fake "other" option to sub_organization select
|
// Add fake "other" option to sub_organization select
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
{% comment %} This will be toggled if a special value, "other", is selected.
|
{% comment %} This will be toggled if a special value, "other", is selected.
|
||||||
Otherwise this field is invisible.
|
Otherwise this field is invisible.
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
<div id="suborganization-container__details">
|
<div id="suborganization-container__details" class="padding-top-2 margin-top-0">
|
||||||
{% with attr_required=True %}
|
{% with attr_required=True %}
|
||||||
{% input_with_errors forms.1.requested_suborganization %}
|
{% input_with_errors forms.1.requested_suborganization %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue