Files
GTI_GERENCIADOR_FISCAL/central/static/control-panel.js
T

5 lines
188 B
JavaScript

document.addEventListener("click", event => {
const action = event.target.closest("[data-confirm]");
if (action && !window.confirm(action.dataset.confirm)) event.preventDefault();
});