update blast sms dan wasap by sag

This commit is contained in:
Nur Izzati Zulkifli
2023-12-03 09:29:17 +08:00
parent ec6c7f832c
commit b7a5054bec
2 changed files with 12 additions and 5 deletions
@@ -244,6 +244,7 @@
<div class="card-body text-center">
<form id="exportpdf" action="{{route('stokaudit.exportlaporancetakkhas')}}" target="_blank" method="POST">
{{-- <a class="btn m-1 btn-success confirmdel" href="{{route('stokaudit.exportlaporancetakkhas')}}" data-toggle="tooltip" data-placement="top" title="Blast"><i class="far fa-mail-alt"></i>Blast Whatsapp & SMS</a> --}}
@csrf
<input type="hidden" name="type" id="typedonwload" value="">
<input type="hidden" name="daritempoh" value="{{ $daritempoh}}">
@@ -404,9 +405,14 @@
titleAttr: 'Blast Whatsapp',
text: '<h8><b>WHATSAPP & SMS</b></h8>',
action: function ( e, dt, node, config ) {
$('#typedonwload').val('whatsapp');
$("#exportpdf").submit();
// window.open("_blank");
// $('#typedonwload').val('whatsapp');
// $("#exportpdf").submit();
$("#exportpdf").click(function() {
$('[data-toggle="tooltip"]').tooltip()
alert("ADAKAH ANDA PASTI?");
$('#typedonwload').val('whatsapp');
$("#exportpdf").submit();
});
}
}