mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 01:11:55 +02:00
Merge pull request #2694 from cisagov/staging-action-needed-email-hotfix
Hotfix JS for edit email button not found
This commit is contained in:
commit
2593c4101d
1 changed files with 5 additions and 6 deletions
|
@ -519,7 +519,6 @@ function initializeWidgetOnList(list, parentId) {
|
|||
var actionNeededEmailReadonlyTextarea = document.querySelector("#action-needed-reason-email-readonly-textarea")
|
||||
|
||||
// Edit e-mail modal (and its confirmation button)
|
||||
var actionNeededEmailAlreadySentModal = document.querySelector("#email-already-sent-modal")
|
||||
var confirmEditEmailButton = document.querySelector("#email-already-sent-modal_continue-editing-button")
|
||||
|
||||
// Headers and footers (which change depending on if the e-mail was sent or not)
|
||||
|
@ -561,11 +560,11 @@ function initializeWidgetOnList(list, parentId) {
|
|||
updateActionNeededEmailDisplay(reason)
|
||||
});
|
||||
|
||||
editEmailButton.addEventListener("click", function() {
|
||||
if (!checkEmailAlreadySent()) {
|
||||
showEmail(canEdit=true)
|
||||
}
|
||||
});
|
||||
// editEmailButton.addEventListener("click", function() {
|
||||
// if (!checkEmailAlreadySent()) {
|
||||
// showEmail(canEdit=true)
|
||||
// }
|
||||
// });
|
||||
|
||||
confirmEditEmailButton.addEventListener("click", function() {
|
||||
// Show editable view
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue