forked from mirrors/easyappointments
Use no-value placeholders in the appointments modal
This commit is contained in:
parent
d7e5817484
commit
8a5e4a67b0
1 changed files with 3 additions and 3 deletions
|
@ -225,7 +225,7 @@ App.Components.AppointmentsModal = (function () {
|
|||
vars('customers').forEach((customer) => {
|
||||
$('<div/>', {
|
||||
'data-id': customer.id,
|
||||
'text': customer.first_name + ' ' + customer.last_name
|
||||
'text': (customer.first_name || '[No First Name]') + ' ' + (customer.last_name || '[No Last Name]')
|
||||
}).appendTo($existingCustomersList);
|
||||
});
|
||||
} else {
|
||||
|
@ -286,7 +286,7 @@ App.Components.AppointmentsModal = (function () {
|
|||
response.forEach((customer) => {
|
||||
$('<div/>', {
|
||||
'data-id': customer.id,
|
||||
'text': customer.first_name + ' ' + customer.last_name
|
||||
'text': (customer.first_name || '[No First Name]') + ' ' + (customer.last_name || '[No Last Name]')
|
||||
}).appendTo($existingCustomersList);
|
||||
|
||||
// Verify if this customer is on the old customer list.
|
||||
|
@ -317,7 +317,7 @@ App.Components.AppointmentsModal = (function () {
|
|||
) {
|
||||
$('<div/>', {
|
||||
'data-id': customer.id,
|
||||
'text': customer.first_name + ' ' + customer.last_name
|
||||
'text': (customer.first_name || '[No First Name]') + ' ' + (customer.last_name || '[No Last Name]')
|
||||
}).appendTo($existingCustomersList);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue