FIX_DUPLICATE_ADD_CLIENT
This commit is contained in:
parent
2adf649c0d
commit
68b6ad606b
@ -385,10 +385,12 @@
|
|||||||
});
|
});
|
||||||
}else if (lead_type == 3) {
|
}else if (lead_type == 3) {
|
||||||
|
|
||||||
$('#client_id').prepend($('<option>', {
|
if ($('#client_id option[value="add_client"]').length === 0) {
|
||||||
value: 'add_client',
|
$('#client_id').prepend($('<option>', {
|
||||||
text: '+ Add Client'
|
value: 'add_client',
|
||||||
}));
|
text: '+ Add Client'
|
||||||
|
}));
|
||||||
|
}
|
||||||
$("#source_policy_id").removeAttr("required");
|
$("#source_policy_id").removeAttr("required");
|
||||||
$("#source_policy_id").closest("div") .find("label .text-danger").remove();
|
$("#source_policy_id").closest("div") .find("label .text-danger").remove();
|
||||||
|
|
||||||
|
|||||||
@ -575,10 +575,12 @@
|
|||||||
if (value == 3) {
|
if (value == 3) {
|
||||||
// alert("Function Called");
|
// alert("Function Called");
|
||||||
|
|
||||||
$('#client_id').prepend($('<option>', {
|
if ($('#client_id option[value="add_client"]').length === 0) {
|
||||||
value: 'add_client',
|
$('#client_id').prepend($('<option>', {
|
||||||
text: '+ Add Client'
|
value: 'add_client',
|
||||||
}));
|
text: '+ Add Client'
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
$("#source_policy_id").prop("required",false);
|
$("#source_policy_id").prop("required",false);
|
||||||
$("#source_policy_id").closest("div") .find("label .text-danger").remove();
|
$("#source_policy_id").closest("div") .find("label .text-danger").remove();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user