16 lines
682 B
PHP
16 lines
682 B
PHP
<script>
|
|
$(function(){
|
|
|
|
$(".generate-all2:not('.disabled')").on("click", function(){
|
|
Swal.fire('{{e2("Generate Start")}}', '{{e2("Please wait...")}}', 'success');
|
|
$(this).attr("disabled", "disabled").addClass("disabled").html("Please wait...");
|
|
|
|
$.get("{{url("cron-documents?type=")}}" + $(this).attr("type"), function(d) {
|
|
Swal.fire('', 'Generated PDF Document Count:' + d, 'success');
|
|
$(".generate-all2").html('<i class="fa fa-file-pdf"></i> {{e2("Generate All")}}');
|
|
});
|
|
|
|
|
|
});
|
|
});
|
|
</script> |