CHANGE_BDS
This commit is contained in:
parent
42773b2700
commit
f46ee62e77
@ -5139,6 +5139,7 @@
|
|||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
|
|
||||||
if (response.status == true) {
|
if (response.status == true) {
|
||||||
|
getClientAndBranchAndPolicy(false);
|
||||||
toastr.success(response.message, 'SUCCESS');
|
toastr.success(response.message, 'SUCCESS');
|
||||||
appendClients(response.clients, response.client_id);
|
appendClients(response.clients, response.client_id);
|
||||||
appendVehicles(response.vehicles, response.vehicle_id);
|
appendVehicles(response.vehicles, response.vehicle_id);
|
||||||
@ -5215,6 +5216,7 @@
|
|||||||
$('.loader-mask').delay(350).fadeOut('slow');
|
$('.loader-mask').delay(350).fadeOut('slow');
|
||||||
|
|
||||||
if (response.status == true) {
|
if (response.status == true) {
|
||||||
|
getClientAndBranchAndPolicy(false);
|
||||||
toastr.success(response.message, 'SUCCESS');
|
toastr.success(response.message, 'SUCCESS');
|
||||||
appendClients(response.clients, response.client_id);
|
appendClients(response.clients, response.client_id);
|
||||||
appendBranch(response.branches, response.branch_id);
|
appendBranch(response.branches, response.branch_id);
|
||||||
|
|||||||
@ -701,7 +701,7 @@ function show_list_hide_add()
|
|||||||
count = 0
|
count = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
function getClientAndBranchAndPolicy()
|
function getClientAndBranchAndPolicy(appendStatus = true)
|
||||||
{
|
{
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '<?= base_url("/util/getClientAndBranchAndPolicy") ?>',
|
url: '<?= base_url("/util/getClientAndBranchAndPolicy") ?>',
|
||||||
@ -710,15 +710,21 @@ function getClientAndBranchAndPolicy()
|
|||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
|
||||||
console.log('getClientAndBranchAndPolicy', res);
|
console.log('getClientAndBranchAndPolicy', res);
|
||||||
|
|
||||||
if(res.status == true){
|
if(res.status == true){
|
||||||
|
|
||||||
client_list = res.client_data;
|
client_list = res.client_data;
|
||||||
branch_list = res.branch_data;
|
branch_list = res.branch_data;
|
||||||
policy_list = res.policy_data;
|
policy_list = res.policy_data;
|
||||||
vehicle_list = res.vehicle_data;
|
vehicle_list = res.vehicle_data;
|
||||||
unit_list = res.unit_data;
|
unit_list = res.unit_data;
|
||||||
appendClients(res.client_data);
|
|
||||||
appendVehicles(res.vehicle_data);
|
if(appendStatus == true){
|
||||||
// appendOwner(client_list)
|
appendClients(res.client_data);
|
||||||
|
appendVehicles(res.vehicle_data);
|
||||||
|
// appendOwner(client_list)
|
||||||
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
console.log('No data found');
|
console.log('No data found');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user