From b6270469895997da462bde188460753c36afe446 Mon Sep 17 00:00:00 2001 From: nishaMuhd Date: Tue, 9 May 2023 16:30:43 +0800 Subject: [PATCH] update firsttime2 utk nopassport --- resources/views/auth/pertama-kali/firsttime2.blade.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/views/auth/pertama-kali/firsttime2.blade.php b/resources/views/auth/pertama-kali/firsttime2.blade.php index 467dc70..77c3bd9 100644 --- a/resources/views/auth/pertama-kali/firsttime2.blade.php +++ b/resources/views/auth/pertama-kali/firsttime2.blade.php @@ -530,7 +530,12 @@ if (data.status == 1) { $('input[name="name"]').val(data.customerinfo.nama); - $('input[name="icno"]').val(data.customerinfo.kpbaru); + if (data.customerinfo.kpbaru == '') { + $('input[name="icno"]').val(data.customerinfo.kplama); + } else { + $('input[name="icno"]').val(data.customerinfo.kpbaru); + } + // $('input[name="icno"]').val(data.customerinfo.kpbaru); $('input[name="notel"]').val(data.customerinfo.telefon); $('input[name="poskod"]').val(data.customerinfo.poskod); $('textarea[name="alamat"]').val(data.customerinfo.alamat1);