TW dan Gelombang pada Realisasi Pendapatan
This commit is contained in:
Vendored
+25
-1
@@ -509,4 +509,28 @@ $('body').on('expanded.pushMenu collapsed.pushMenu', function() {
|
||||
|
||||
// Time depends on your settings
|
||||
}, 350);
|
||||
} );
|
||||
} );
|
||||
|
||||
$(document).on("click", ".btn-save", function(e){
|
||||
e.preventDefault();
|
||||
let FormId = $(this).closest("form").prop("id");
|
||||
Form = $("#"+FormId)[0];
|
||||
if (Form.checkValidity()){
|
||||
Swal.fire({
|
||||
title: 'Data akan disimpan ?!',
|
||||
showDenyButton: true,
|
||||
showCancelButton: false,
|
||||
confirmButtonText: 'Ya',
|
||||
denyButtonText: "Tidak",
|
||||
icon: "warning",
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
$("body").append("<div class='loading'></div>")
|
||||
$("#"+FormId+ " input, select").prop("disabled", false);
|
||||
Form.submit();
|
||||
}
|
||||
})
|
||||
}else{
|
||||
Swal.fire("Info","Input masih ada yang kosong, harap periksa kembali!","error");
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user