update IIFE definition

This commit is contained in:
Rachid Mrad 2024-04-12 15:46:11 -04:00
parent 0a17f396cb
commit 2817703021
No known key found for this signature in database

View file

@ -767,10 +767,10 @@ function toggleTwoDomElements(ele1, ele2, index) {
})(); })();
/** /**
* An IIFE that listens to the other contacts radio form on DAs and toggles the contacts/no other contacts forms * An IIFE that disables the delete buttons on nameserver forms on page load if < 3 forms
* *
*/ */
(function otherContactsFormListener() { (function nameserversFormListener() {
let isNameserversForm = document.querySelector(".nameservers-form"); let isNameserversForm = document.querySelector(".nameservers-form");
if (isNameserversForm) { if (isNameserversForm) {
let forms = document.querySelectorAll(".repeatable-form"); let forms = document.querySelectorAll(".repeatable-form");