Add Amazon revenue accounting
This commit is contained in:
+5
-4
@@ -1,4 +1,9 @@
|
||||
(() => {
|
||||
document.addEventListener('submit', event => {
|
||||
const message = event.target.dataset.confirm;
|
||||
if (message && !window.confirm(message)) event.preventDefault();
|
||||
});
|
||||
|
||||
const root = document.querySelector('[data-admin-app]');
|
||||
if (!root) return;
|
||||
|
||||
@@ -48,9 +53,5 @@
|
||||
root.addEventListener('click', event => {
|
||||
if (event.target.matches('[data-remove-author]')) event.target.closest('[data-author-row]').remove();
|
||||
});
|
||||
document.addEventListener('submit', event => {
|
||||
const message = event.target.dataset.confirm;
|
||||
if (message && !window.confirm(message)) event.preventDefault();
|
||||
});
|
||||
root.querySelectorAll('[data-author-row]').forEach(bindSearch);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user