mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-16 06:24:12 +02:00
cleanup
This commit is contained in:
parent
0d3e38ce70
commit
4b1ca63016
1 changed files with 1 additions and 1 deletions
|
@ -1353,7 +1353,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
tbody.innerHTML = '';
|
tbody.innerHTML = '';
|
||||||
|
|
||||||
// Unload modals will re-inject the DOM with the initial placeholders to allow for .on() in regular use cases
|
// Unload modals will re-inject the DOM with the initial placeholders to allow for .on() in regular use cases
|
||||||
// We do NOT want that as it will cause multiple placeholders and therfore multiple inits on delete,
|
// We do NOT want that as it will cause multiple placeholders and therefore multiple inits on delete,
|
||||||
// which will cause bad delete requests to be sent.
|
// which will cause bad delete requests to be sent.
|
||||||
const preExistingModalPlaceholders = document.querySelectorAll('[data-placeholder-for^="toggle-delete-domain-alert"]');
|
const preExistingModalPlaceholders = document.querySelectorAll('[data-placeholder-for^="toggle-delete-domain-alert"]');
|
||||||
preExistingModalPlaceholders.forEach(element => {
|
preExistingModalPlaceholders.forEach(element => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue