Skip to content

Commit

Permalink
Revert "JS changes"
Browse files Browse the repository at this point in the history
This reverts commit 13cc2f3.
  • Loading branch information
liszkapawel committed Aug 25, 2022
1 parent 13cc2f3 commit 32a7bd9
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/Resources/assets/admin/automaticBlacklistingConfiguration.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
$(() => {
const addRuleBtn = document.querySelector('[data-form-collection="add"]');
const addRuleBtn = document.querySelector('[data-form-collection="add"]');

const turnOnListener = () => {
addRuleBtn?.addEventListener('click', () => {
const turnOnListener = () => {
addRuleBtn?.addEventListener('click', () => {
setTimeout(() => {
const configurationTypeSelects = document.querySelectorAll('[data-form-collection="update"]');
const changeEvent = new Event('change', { 'bubbles': true });

configurationTypeSelects[configurationTypeSelects.length - 1].dispatchEvent(changeEvent);
});
}

turnOnListener();
})
}, 100);
});
}

turnOnListener();

0 comments on commit 32a7bd9

Please sign in to comment.