-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
2,535 additions
and
502 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 3 additions & 8 deletions
11
src/registrar/assets/src/js/getgov-admin/domain-information-form.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
import { handleSuborganizationFields } from './helpers-portfolio-dynamic-fields.js'; | ||
import { handlePortfolioSelection } from './helpers-portfolio-dynamic-fields.js'; | ||
|
||
/** | ||
* A function for dynamic DomainInformation fields | ||
*/ | ||
export function initDynamicDomainInformationFields(){ | ||
const domainInformationPage = document.getElementById("domaininformation_form"); | ||
if (domainInformationPage) { | ||
handleSuborganizationFields(); | ||
} | ||
|
||
// DomainInformation is embedded inside domain so this should fire there too | ||
const domainPage = document.getElementById("domain_form"); | ||
if (domainPage) { | ||
handleSuborganizationFields(portfolioDropdownSelector="#id_domain_info-0-portfolio", suborgDropdownSelector="#id_domain_info-0-sub_organization"); | ||
console.log("handling domain information page"); | ||
handlePortfolioSelection(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.