perbaikan saat kirim surat nodin tahap akhir

This commit is contained in:
nana4895
2024-06-06 05:45:02 +07:00
parent fde333ad5b
commit b900ac8292
12 changed files with 186 additions and 153 deletions
+15 -3
View File
@@ -288,7 +288,7 @@ if (($disp_thn == NULL) || ($disp_thn == '')) {
var jml_kpd = chars[2];
if ((!no_surat) || (!perihal) || ((jml_pic == '0') && (jml_file == '0')) || (jml_kpd == '0')) {
alert('No surat, Perihal, Lampiran, dan Kepada harus di-isi, Mohon dicek kembali..');
infoToast('error', 'No Surat, Perihal, File Doc atau Gambar \n Harus Terisi');
} else {
var x = confirm("Anda yakin ingin mengirim ?");
if (x) {
@@ -452,7 +452,7 @@ if (($disp_thn == NULL) || ($disp_thn == '')) {
var thn2 = $('#thn').val();
var bln2 = $('#bln').val();
var sat = $('#sat').val();
if (sat == '172') {
$('#tabel_kirim').load("app/kirim/tabel.php", {
satker: sat,
@@ -589,4 +589,16 @@ if (($disp_thn == NULL) || ($disp_thn == '')) {
$('body').addClass('modal-open');
}
});
</script>
function infoToast(icone, infone) {
Swal.fire({
// position: posisine,
icon: icone,
title: infone,
showConfirmButton: false,
timer: 2500
});
}
</script>
<script src="assets/vendor/sweetalert2/sweetalert2.all.min.js"></script>