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;
}
}else if(id_type=='passport'){
if(nokp.length < 5){
Swal.fire({
icon: 'error',
title: 'Amaran!',
text: 'Sila Periksa Passport Pelanggan'
});
event.preventDefault();
return false;
}
if(nokp.indexOf(' ') > 0){
Swal.fire({
icon: 'error',
title: 'Amaran!',
text: 'Sila Masukkan Passport Tanpa Ruang \'Kosong\' \n e.g(AP1111111)'
});
event.preventDefault();
return false;
}
if(regex.test(nokp) == false){
Swal.fire({
icon: 'error',
title: 'Amaran!',
text: 'Sila Periksa Passport Pelanggan'
});
event.preventDefault();
return false;
}
// if(nokp.length < 5){
// Swal.fire({
// icon: 'error',
// title: 'Amaran!',
// text: 'Sila Periksa Passport Pelanggan'
// });
// event.preventDefault();
// return false;
// }
// if(nokp.indexOf(' ') > 0){
// Swal.fire({
// icon: 'error',
// title: 'Amaran!',
// text: 'Sila Masukkan Passport Tanpa Ruang \'Kosong\' \n e.g(AP1111111)'
// });
// event.preventDefault();
// return false;
// }
// if(regex.test(nokp) == false){
// Swal.fire({
// icon: 'error',
// title: 'Amaran!',
// text: 'Sila Periksa Passport Pelanggan'
// });
// event.preventDefault();
// return false;
// }
}
}
</script>