perbaikan auto save kirim ke kabag umum, dan penambahan button kembalikan saat verif
This commit is contained in:
@@ -13,9 +13,9 @@ while ($r = pg_fetch_array($d)) {
|
||||
?>
|
||||
|
||||
<form role="form">
|
||||
<input type="text" id="surat_id_cek" value="<?php echo $id; ?>">
|
||||
<input type="text" id="satuan_kerja_id_cek" value="<?php echo $satuan_kerja_id; ?>">
|
||||
<input type="text" id="no_surat_cek" value="<?php echo $no_surat; ?>">
|
||||
<input type="hidden" id="surat_id_cek" value="<?php echo $id; ?>">
|
||||
<input type="hidden" id="satuan_kerja_id_cek" value="<?php echo $satuan_kerja_id; ?>">
|
||||
<input type="hidden" id="no_surat_cek" value="<?php echo $no_surat; ?>">
|
||||
<div class="form-group">
|
||||
<label>Nomor Surat</label>
|
||||
<input type="text" class="form-control" id="no_surat" value="<?php echo $no_surat; ?>">
|
||||
@@ -134,7 +134,7 @@ while ($r = pg_fetch_array($d)) {
|
||||
}
|
||||
|
||||
function simpan_tujuan_kirim() {
|
||||
var surat_id = $('#surat_id_cek').val(); // nomer surat masih belum sinkron
|
||||
var surat_id = $('#surat_id_cek').val();; // nomer surat masih belum sinkron
|
||||
var satuan_kerja_id = $('#satuan_kerja_id_cek').val();
|
||||
|
||||
var kepada = 771; // ini ID dari SatKer Kepala Bagian Umum
|
||||
@@ -229,6 +229,8 @@ while ($r = pg_fetch_array($d)) {
|
||||
|
||||
$('#perihal').focusout(function() {
|
||||
simpkr();
|
||||
simpan_tujuan_kirim();
|
||||
setTimeout(function() {
|
||||
simpan_tujuan_kirim();
|
||||
}, 2000); // 120000 ms = 2 menit
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user