perubahan surat disposisi

This commit is contained in:
2024-07-14 13:15:09 +07:00
parent c3bff35638
commit 77e95ff2ee
109 changed files with 2140 additions and 2086 deletions
-25
View File
@@ -25,11 +25,8 @@ $(document).on("click", "#tmbh_naskah", function () {
});
$("#simpan_naskah").click(function () {
// var id = ($('#id_naskah').val() == '0') ? 0 : $('#id_naskah').val();
var formData = new FormData($('#form_naskah')[0]);
// Append data to formData
// formData.append('id',id);
formData.append('id',$('#naskah_id').val());
formData.append('nama', $('#nama_file').val());
formData.append('file_naskah', $('#file_naskah')[0].files[0]);
@@ -55,28 +52,6 @@ $("#simpan_naskah").click(function () {
});
});
// $('button[name="edit_naskah"]').click(function () {
// var id = $(this).data('id'); // Mengambil ID dari atribut data-id
// $.ajax({
// type: 'POST',
// url: '"app/master/naskah_dinas/controller.php', // Ganti dengan URL yang sesuai
// data: { id: id },
// success: function (response) {
// // Lakukan sesuatu dengan respon dari server
// // Misalnya, memperbarui modal dengan data yang diambil
// $('#modal-body').html(response);
// $('#editModal').modal('show');
// },
// error: function (xhr, status, error) {
// console.error('AJAX request failed:', status, error);
// }
// });
// });
function infoToast(icone, infone) {
Swal.fire({
// position: posisine,