Código Javascript:
Ver original
function BorrarPago () { if (confirm ("Está seguro que desea borrar el pago? Esta acción es IRREVERSIBLE, Proceda con cautela.")) { $("#checkboxpago input:checked").each (EjecutarBorrarPago); } } function EjecutarBorrarPago () { var orden; orden = $(this).val (); $.ajax ({ async: true, type: "POST", dataType: "html", contentType: "application/x-www-form-urlencoded", url: "borrar_pagos.php", data: "id="+orden, timeout: (100*1000), beforeSend: InicioEnvioBorrarPago, success: ExitoBorrarPago, timeout: 4000, error: function(jqXHR, textStatus, errorThrown) { if(textStatus==="timeout") { alert (textStatus); } } }); }