fix: restore from regex corruption, JS-bind modal close, data-action delegation

This commit is contained in:
2026-07-15 03:53:16 +08:00
parent 80f8342c0b
commit 021351d898
20 changed files with 140 additions and 152 deletions

View File

@@ -60,11 +60,5 @@ const U = {
document.querySelector('.btn-confirm-cancel').onclick = () => { App.closeModal(); resolve(false); };
document.querySelector('.btn-confirm-ok').onclick = () => { App.closeModal(); resolve(true); };
});
},
bindClicks(container, handlers) {
for (const [selector, fn] of Object.entries(handlers)) {
container.querySelectorAll(selector).forEach(el => el.addEventListener('click', fn));
}
}
};