1
I have the Function below that at the end of a Reload operation on the page in order to update the status.
It would be possible to put a wait time to run this Reload ?
function ConsultarChangeDll(numero) {
var status = $("#sclStatusGrid_" + numero).val();
if (status == "L") {
swal({
title: "",
text: "Confirmar operação?",
type: "warning",
showCancelButton: true,
confirmButtonClass: "btn-danger",
confirmButtonText: "Sim",
cancelButtonText: "Não",
closeOnConfirm: false,
closeOnCancel: false
},
function (isConfirm) {
if (isConfirm) {
ControleEstoqueFranquia(numero);
swal("", "Operação realizada.", "success");
window.location.reload();
} else {
swal("", "Operação cancelada.", "error");
window.location.reload();
return;
}
});