fix banyak

This commit is contained in:
hafifierahman
2021-03-28 10:15:39 +08:00
parent c0845ccfdd
commit 14ae96d86c
7 changed files with 305 additions and 75 deletions
+39 -16
View File
@@ -336,15 +336,26 @@ async function openuptambahdanserah(e)
var channel = pusher.subscribe('pendahuluanserahan-notice');
channel.bind('penserahan-event', function(data) {
// let message = JSON.stringify(data);
Swal.fire({
icon: 'success',
title: 'Tambah Pendahuluan',
text: 'Tambah Pendahuluan berjaya dipohon!'
}).then(function(){
location.reload();
});
if(data == 'Lulus')
{
Swal.fire({
icon: 'success',
title: 'Tambah Pendahuluan',
text: 'Tambah Pendahuluan berjaya dipohon!'
}).then(function(){
location.reload();
});
}else{
Swal.fire({
icon: 'error',
title: 'Tambah Pendahuluan',
text: 'Tambah Pendahuluan tidak diluluskan!'
}).then(function(){
location.reload();
});
}
});
@@ -486,14 +497,26 @@ function tambahdanserahanfunc(e)
var channel = pusher.subscribe('pendahuluanserahan-notice');
channel.bind('penserahan-event', function(data) {
// let message = JSON.stringify(data);
Swal.fire({
icon: 'success',
title: 'Serahan Modal',
text: 'Serahan modal berjaya dipohon!'
}).then(function(){
location.reload();
});
if(data == 'Lulus')
{
Swal.fire({
icon: 'success',
title: 'Serahan Modal',
text: 'Serahan modal berjaya dipohon!'
}).then(function(){
location.reload();
});
}else{
Swal.fire({
icon: 'error',
title: 'Serahan Modal',
text: 'Serahan modal tidak diluluskan!'
}).then(function(){
location.reload();
});
}
});