mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-13 13:09:41 +02:00
check for page
This commit is contained in:
parent
e37a95ee1e
commit
c084ec62f0
1 changed files with 6 additions and 4 deletions
|
@ -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()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue