Remove js for style

This commit is contained in:
zandercymatics 2024-11-25 10:20:34 -07:00
parent 04365fbf87
commit 0b69a5b0c2
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 2 additions and 8 deletions

View file

@ -2938,13 +2938,7 @@ document.addEventListener("DOMContentLoaded", () => {
if (radio != null) requestingSuborganization = radio?.checked && radio.value === "True";
requestingSuborganization ? showElement(suborgContainer) : hideElement(suborgContainer);
requestingNewSuborganization.value = requestingSuborganization && select.value === "other" ? "True" : "False";
if (requestingNewSuborganization.value === "True") {
selectParent.classList.add("padding-bottom-2");
showElement(suborgDetailsContainer);
}else {
selectParent.classList.remove("padding-bottom-2");
hideElement(suborgDetailsContainer);
}
requestingNewSuborganization.value === "True" ? showElement(suborgDetailsContainer) : hideElement(suborgDetailsContainer);
}
// Add fake "other" option to sub_organization select

View file

@ -43,7 +43,7 @@
{% comment %} This will be toggled if a special value, "other", is selected.
Otherwise this field is invisible.
{% endcomment %}
<div id="suborganization-container__details">
<div id="suborganization-container__details" class="padding-top-2 margin-top-0">
{% with attr_required=True %}
{% input_with_errors forms.1.requested_suborganization %}
{% endwith %}