FIX_MISSING_ADD_CLIENT
This commit is contained in:
parent
68b6ad606b
commit
193591f482
@ -150,8 +150,20 @@ if (isset($selected_lead_type)) {
|
||||
}
|
||||
|
||||
function appendClients(data) {
|
||||
// console.log("lead_type",lead_type.value);
|
||||
|
||||
$('#client_id').empty();
|
||||
|
||||
if (lead_type.value == 3) {
|
||||
if ($('#client_id option[value="add_client"]').length === 0) {
|
||||
|
||||
$('#client_id').prepend($('<option>', {
|
||||
value: 'add_client',
|
||||
text: '+ Add Client'
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
||||
$('#client_id').append($('<option>', {
|
||||
value: '',
|
||||
text: 'Select Client'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user