From 8a5e4a67b0f3b3013b0a3a3bcb37e9dd27662c51 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 27 May 2022 09:29:19 +0200 Subject: [PATCH] Use no-value placeholders in the appointments modal --- assets/js/components/appointments_modal.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/components/appointments_modal.js b/assets/js/components/appointments_modal.js index 749ce134..c264e92d 100755 --- a/assets/js/components/appointments_modal.js +++ b/assets/js/components/appointments_modal.js @@ -225,7 +225,7 @@ App.Components.AppointmentsModal = (function () { vars('customers').forEach((customer) => { $('
', { '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) => { $('
', { '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 () { ) { $('
', { '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); } });