This commit is contained in:
hafifierahman
2021-03-28 16:47:06 +08:00
parent 14ae96d86c
commit 068ce88579
22 changed files with 393 additions and 259 deletions
+12 -4
View File
@@ -289,6 +289,10 @@ async function openuptambahdanserah(e)
return 'Isikan tempat kosong diatas!'
}
if(value <= 0){
return 'Masukkan jumlah yang munasabah sahaja!';
}
if(isNaN(value))
{
return 'Amaun hendaklah dalam nombor!'
@@ -329,7 +333,7 @@ async function openuptambahdanserah(e)
allowEnterKey: false
})
var pusher = new Pusher('26b0ec2f297f94b7aa9b', {
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}", {
cluster: 'ap1',
encrypted: true
});
@@ -382,7 +386,11 @@ async function openuptambahdanserah(e)
allowOutsideClick: true,
inputValidator: (value) => {
if (!value) {
return 'Isikan tempat kosong diatas!'
return 'Isikan tempat kosong diatas!';
}
if(value <= 0){
return 'Masukkan jumlah yang munasabah sahaja!';
}
if(value > bakiakhir)
@@ -392,7 +400,7 @@ async function openuptambahdanserah(e)
if(isNaN(value))
{
return 'Amaun hendaklah dalam nombor!'
return 'Amaun hendaklah dalam nombor!';
}
}
});
@@ -489,7 +497,7 @@ function tambahdanserahanfunc(e)
allowEnterKey: false
})
var pusher = new Pusher('26b0ec2f297f94b7aa9b', {
var pusher = new Pusher("{{ env('PUSHER_APP_KEY') }}", {
cluster: 'ap1',
encrypted: true
});