update Approval Popup Success
This commit is contained in:
parent
e819232e9c
commit
ac44adc994
@ -189,10 +189,20 @@
|
|||||||
url: form.attr('action'),
|
url: form.attr('action'),
|
||||||
data: form.serialize(), // serializes the form's elements.
|
data: form.serialize(), // serializes the form's elements.
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
toastr.success('{{ $approval->description }} Berhasil Di Approve.', 'Success!', {timeOut: 5000});
|
swal.fire({
|
||||||
|
title: "Success!",
|
||||||
|
text: "{{ $approval->description }} Berhasil Di Approve.",
|
||||||
|
icon: "success",
|
||||||
|
confirmButtonClass: 'btn btn-primary',
|
||||||
|
buttonsStyling: false,
|
||||||
|
}).then(function (result) {
|
||||||
|
if (result.value) {
|
||||||
window.location.href = "{{ route('approval.index') }}"
|
window.location.href = "{{ route('approval.index') }}"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
//window.location.href = "{{ route('approval.index') }}"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user