mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
Remove comments and fix spacing
This commit is contained in:
parent
1b226a470c
commit
124a030477
1 changed files with 3 additions and 4 deletions
|
@ -662,8 +662,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
var stateTerritoryField = document.querySelector('select[name="organization_contact-state_territory"]');
|
||||
|
||||
if (!stateTerritoryField) {
|
||||
// console.log("State territory field not found, skipping urbanization setup.");
|
||||
return; // Exit if the field is not found
|
||||
return; // Exit if the field not found
|
||||
}
|
||||
|
||||
setupUrbanizationToggle(stateTerritoryField);
|
||||
|
@ -673,8 +672,8 @@ function setupUrbanizationToggle(stateTerritoryField) {
|
|||
var urbanizationField = document.getElementById('urbanization-field');
|
||||
|
||||
function toggleUrbanizationField() {
|
||||
// console.log("Selected value:", stateTerritoryField.value);
|
||||
if (stateTerritoryField.value === 'PR') { // For Puerto Rico
|
||||
// Checking specifically for Puerto Rico only
|
||||
if (stateTerritoryField.value === 'PR') {
|
||||
urbanizationField.style.display = 'block';
|
||||
} else {
|
||||
urbanizationField.style.display = 'none';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue