0
I have the following Function which is called through a OnClick
where will delete the record selects.
But for security reasons, I would like to put a control to continue the operation or not.
Follows code:
function DeletarLinha(id) {
var empresa = null;
var codigo = null;
var str = id.replace('d', '');
if (str.indexOf('_') > 0) {
var res = str.split("_");
codigo = (res[0]);
empresa = (res[1]);
//Alert de Confirmarção
//Caso for TRUE
//Executar essa function ConsultarPedido(codigo, empresa);
//Caso for Falso
//Apenas abortar o processo.
}
}