I have the function below that at the end of the operation of a reload on the page in order to update the statuses.
Would it 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;
}
});