check for page

This commit is contained in:
zandercymatics 2024-09-27 12:45:50 -06:00
parent e37a95ee1e
commit c084ec62f0
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -668,12 +668,13 @@ class customActionNeededEmail extends CustomizableEmailBase {
* This shows the auto generated email on action needed reason. * This shows the auto generated email on action needed reason.
*/ */
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
const customEmail = new customActionNeededEmail(); const domainRequestForm = document.getElementById("domainrequest_form");
if (!customEmail.dropdown || !customEmail.textarea || !customEmail.domainRequestId || !customEmail.formLabel || !customEmail.modalConfirm){ if (!domainRequestForm) {
return; return;
} }
// Initialize UI // Initialize UI
const customEmail = new customActionNeededEmail();
customEmail.loadActionNeededEmail() customEmail.loadActionNeededEmail()
}); });
@ -738,12 +739,13 @@ class customRejectedEmail extends CustomizableEmailBase {
* This shows the auto generated email on action needed reason. * This shows the auto generated email on action needed reason.
*/ */
document.addEventListener('DOMContentLoaded', function() { document.addEventListener('DOMContentLoaded', function() {
const customEmail = new customRejectedEmail(); const domainRequestForm = document.getElementById("domainrequest_form");
if (!customEmail.dropdown || !customEmail.textarea || !customEmail.domainRequestId || !customEmail.formLabel || !customEmail.modalConfirm){ if (!domainRequestForm) {
return; return;
} }
// Initialize UI // Initialize UI
const customEmail = new customRejectedEmail();
customEmail.loadRejectedEmail() customEmail.loadRejectedEmail()
}); });