FIX_KYC_AND_POLICY_MASTER_REDIRECT : RV

This commit is contained in:
VENKATESHWARAN 2024-03-30 18:44:54 +05:30
parent c32e2a6c13
commit 17c8f1558f
2 changed files with 47 additions and 43 deletions

View File

@ -324,6 +324,7 @@ $(document).ready(function () {
function removeKYCDocs(element) { function removeKYCDocs(element) {
var kyc_docs_id_for_reload = $('#kyc_type_id').val();
var id = element.getAttribute('data-id'); var id = element.getAttribute('data-id');
var form_action = '<?= base_url("master/kyc/kycdocs/remove/") ?>' + id; var form_action = '<?= base_url("master/kyc/kycdocs/remove/") ?>' + id;
$.ajax({ $.ajax({
@ -338,7 +339,8 @@ $(document).ready(function () {
if (res.status == true) { if (res.status == true) {
toastr.success('Remove Done!', 'success'); toastr.success('Remove Done!', 'success');
location.reload(); // location.reload();
window.location.href = '<?= base_url("master/kyc/list/") ?>' + kyc_docs_id_for_reload;
} else { } else {
toastr.warning('Remove Not Done!', 'warning'); toastr.warning('Remove Not Done!', 'warning');

View File

@ -391,6 +391,7 @@ $(document).ready(function () {
function removePolicies(element) { function removePolicies(element) {
var policy_id_for_reload = $('#policy_type_id').val()
var id = element.getAttribute('data-id'); var id = element.getAttribute('data-id');
var form_action = '<?= base_url("master/policy/policies/remove/") ?>' + id; var form_action = '<?= base_url("master/policy/policies/remove/") ?>' + id;
$.ajax({ $.ajax({
@ -407,7 +408,8 @@ function removePolicies(element) {
// $('#branch_table').empty(); // $('#branch_table').empty();
location.reload(); // location.reload();
window.location.href = '<?= base_url("master/policy/list/") ?>' + policy_id_for_reload;
} else { } else {
toastr.warning('Remove Not Done!', 'warning'); toastr.warning('Remove Not Done!', 'warning');