1
0
Fork 0
MastodonStartpage/web/admin/js/confirma.js
2020-01-13 17:16:33 +01:00

4 lines
398 B
JavaScript

function confirma(msg,act) {
document.getElementById('popupcont').innerHTML='<h2>Attenzione</h2>'+msg+'<input type="button" value="No" onClick="document.getElementById(\'popup\').style.display=\'none\'"><input type="button" style="margin-top:2px;" value="Si" onClick="'+act+';document.getElementById(\'popup\').style.display=\'none\'">';
document.getElementById('popup').style.display='table';
}