mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-23 19:20:47 +02:00
Update domain-request-form.js
This commit is contained in:
parent
0587cd795d
commit
73b6c49457
1 changed files with 4 additions and 4 deletions
|
@ -3,12 +3,12 @@ import { submitForm } from './helpers.js';
|
|||
export function initDomainRequestForm() {
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
// These are the request steps in DomainRequestWizard, such as current_websites or review
|
||||
initRequestStepCurrentWebsites();
|
||||
initRequestStepReview();
|
||||
initRequestStepCurrentWebsitesListener();
|
||||
initRequestStepReviewListener();
|
||||
});
|
||||
}
|
||||
|
||||
function initRequestStepReview() {
|
||||
function initRequestStepReviewListener() {
|
||||
const button = document.getElementById("domain-request-form-submit-button");
|
||||
if (button) {
|
||||
button.addEventListener("click", function () {
|
||||
|
@ -17,7 +17,7 @@ function initRequestStepReview() {
|
|||
}
|
||||
}
|
||||
|
||||
function initRequestStepCurrentWebsites() {
|
||||
function initRequestStepCurrentWebsitesListener() {
|
||||
//register-form-step
|
||||
const addAnotherSiteButton = document.getElementById("submit-domain-request--site-button");
|
||||
if (addAnotherSiteButton) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue