tebus separuh
This commit is contained in:
@@ -1145,21 +1145,21 @@
|
||||
success:function(data){
|
||||
console.log(data);
|
||||
}, error: function(xhr, status, error) {
|
||||
var err = eval("(" + xhr.responseText + ")");
|
||||
alert(xhr.responseText);
|
||||
var err = eval("(" + xhr.responseText + ")");
|
||||
alert(xhr.responseText);
|
||||
}
|
||||
});
|
||||
|
||||
var urlroute = '{{ route("resit.tebusseparuh", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', norujukan);
|
||||
Swal.fire(
|
||||
'Berjaya!',
|
||||
'Tebus Separuh Berjaya',
|
||||
'success'
|
||||
) .then(function() {
|
||||
window.open(urlroute, '_blank');
|
||||
window.location.replace("{{ url()->previous() }}");
|
||||
})
|
||||
'Berjaya!',
|
||||
'Tebus Separuh Berjaya',
|
||||
'success'
|
||||
) .then(function() {
|
||||
window.open(urlroute, '_blank');
|
||||
window.location.replace("{{ url()->previous() }}");
|
||||
})
|
||||
},error: function (request, status, error) {
|
||||
console.log(request.responseText);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user