Skip to content

Commit

Permalink
after qa
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 committed Oct 18, 2023
1 parent 20d218a commit fd32809
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,17 @@
node.insertAdjacentHTML('beforeend', template.replace(NUMBER_PLACEHOLDER, getNextIndex(node)));

initColumns(settingsNode);

node.closest('.ibexa-table').dispatchEvent(new CustomEvent('ibexa-refresh-main-table-checkbox'));
};
const removeItems = (event) => {
const settingsNode = event.target.closest(SELECTOR_SETTINGS_COLUMNS);

findCheckedColumns(settingsNode).forEach((btn) => btn.closest(SELECTOR_COLUMN).remove());
findCheckedColumns(settingsNode).forEach((checkbox) => {
checkbox.checked = false;
checkbox.dispatchEvent(new Event('change'));
checkbox.closest(SELECTOR_COLUMN).remove();
});

initColumns(settingsNode);
};
Expand Down

0 comments on commit fd32809

Please sign in to comment.