Commit 9eeba5fd authored by Azy Mushofy Anwary's avatar Azy Mushofy Anwary

as

parent 5d91bfce
...@@ -394,20 +394,21 @@ function loadedit(param) { ...@@ -394,20 +394,21 @@ function loadedit(param) {
id: param, id: param,
}, },
success: function (result) { success: function (result) {
// console.log(result); // console.log(data[0].image_poli);
// $('.loaddata').empty(); // $('.loaddata').empty();
if (result.code == 0) { if (result.code == 0) {
let data = result.data; let data = result.data;
console.log(data); console.log(data[0].image_poli);
$('#id_poli').val(data[0].id_poli); $('#id_poli').val(data[0].id_poli);
$('#nama_poliEdt').val(data[0].nama_poli); $('#nama_poliEdt').val(data[0].nama_poli);
$('#nama_poli2').val(data[0].nama_poli); $('#nama_poli2').val(data[0].nama_poli);
$('#kode_poliEdt').val(data[0].kode_poli); $('#kode_poliEdt').val(data[0].kode_poli);
$('#deskripsi_poliEdt').val(data[0].deskripsi_poli); $('#deskripsi_poliEdt').val(data[0].deskripsi_poli);
$('#gambar_poliedt').file(data[0].image_poli);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment