We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7996e5 commit aa79ceaCopy full SHA for aa79cea
1 file changed
assets/js/components/appointments_modal.js
@@ -225,7 +225,7 @@ App.Components.AppointmentsModal = (function () {
225
*/
226
$selectCustomer.on('click', (event) => {
227
if (!$existingCustomersList.is(':visible')) {
228
- $(event.target).find('span').text(lang('hide'));
+ $(event.currentTarget).find('span').text(lang('hide'));
229
$existingCustomersList.empty();
230
$existingCustomersList.slideDown('slow');
231
$filterExistingCustomers.fadeIn('slow').val('');
@@ -239,7 +239,7 @@ App.Components.AppointmentsModal = (function () {
239
} else {
240
$existingCustomersList.slideUp('slow');
241
$filterExistingCustomers.fadeOut('slow');
242
- $(event.target).find('span').text(lang('select'));
+ $(event.currentTarget).find('span').text(lang('select'));
243
}
244
});
245
0 commit comments