Skip to content

Commit

Permalink
Remove js for style
Browse files Browse the repository at this point in the history
  • Loading branch information
zandercymatics committed Nov 25, 2024
1 parent 04365fb commit 0b69a5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/registrar/assets/js/get-gov.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ <h2>Add suborganization information</h2>
{% 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 %}
Expand Down

0 comments on commit 0b69a5b

Please sign in to comment.