update function notis jbg call
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user