fix banyak
This commit is contained in:
Vendored
+39
-16
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user