update function notis jbg call

This commit is contained in:
nishaMuhd
2024-01-15 09:58:49 +08:00
parent dce373dd6d
commit 75132f72d2
3 changed files with 9 additions and 5 deletions
@@ -254,7 +254,10 @@ $("#kemaskiniform").submit(function(event) {
// 'nokp':nokp
},
success: function(success){
var urlroute = "{{ route('arcc.bycawnotisjbg2', ['kodcaw' => ':kodcaw', 'notisid' => ':notisid']) }}";
urlroute = urlroute.replace(':kodcaw', kodcaw);
urlroute = urlroute.replace(':notisid', notisid);
if(success){
Swal.fire({
icon: 'success',
@@ -262,9 +265,11 @@ $("#kemaskiniform").submit(function(event) {
text: 'Berjaya mengemaskini maklumat notis JBG'
}).then((result) => {
if (result.isConfirmed) {
location.reload();
//location.reload();
window.location.href = urlroute;
}
});
}else{
Swal.fire({
icon: 'error',