perubahan sikit

This commit is contained in:
MUHD HAFIFIE
2021-08-12 23:41:54 +08:00
parent 29b18c19cf
commit c637ddd318
15 changed files with 222 additions and 156 deletions
+21 -1
View File
@@ -2428,6 +2428,17 @@
function wakilfunction(e)
{
let wakil = $('#wakiltxt').val();
console.log(wakil);
if(wakil === null || wakil === '')
{
Swal.fire(
'Amaran!',
'Sila masukkan nilai di dalam kotak wakil!',
'error'
)
return false;
}
var patternregex = /\s+|[-,\/]/g;
@@ -2499,7 +2510,16 @@
let nota = $('#notawakil').val();
let nokp = $('#nokpwakil').val();
if(nowakil === null || nowakil === '')
{
Swal.fire(
'Amaran!',
'Sila tunggu no wakil untuk proses dahulu sebelum tekan terima!',
'error'
)
return false;
}
$.ajax({
method:'POST',
url: "{{ route('wakil.create') }}",