update passport

This commit is contained in:
BTMS2
2025-06-03 12:08:34 +08:00
parent f82a2e8323
commit a6ec0ac4fc
+27 -27
View File
@@ -852,33 +852,33 @@
return false; return false;
} }
}else if(id_type=='passport'){ }else if(id_type=='passport'){
if(nokp.length < 5){ // if(nokp.length < 5){
Swal.fire({ // Swal.fire({
icon: 'error', // icon: 'error',
title: 'Amaran!', // title: 'Amaran!',
text: 'Sila Periksa Passport Pelanggan' // text: 'Sila Periksa Passport Pelanggan'
}); // });
event.preventDefault(); // event.preventDefault();
return false; // return false;
} // }
if(nokp.indexOf(' ') > 0){ // if(nokp.indexOf(' ') > 0){
Swal.fire({ // Swal.fire({
icon: 'error', // icon: 'error',
title: 'Amaran!', // title: 'Amaran!',
text: 'Sila Masukkan Passport Tanpa Ruang \'Kosong\' \n e.g(AP1111111)' // text: 'Sila Masukkan Passport Tanpa Ruang \'Kosong\' \n e.g(AP1111111)'
}); // });
event.preventDefault(); // event.preventDefault();
return false; // return false;
} // }
if(regex.test(nokp) == false){ // if(regex.test(nokp) == false){
Swal.fire({ // Swal.fire({
icon: 'error', // icon: 'error',
title: 'Amaran!', // title: 'Amaran!',
text: 'Sila Periksa Passport Pelanggan' // text: 'Sila Periksa Passport Pelanggan'
}); // });
event.preventDefault(); // event.preventDefault();
return false; // return false;
} // }
} }
} }
</script> </script>