forked from mirrors/easyappointments
Proper mark selected row when clicking on a result list item.
This commit is contained in:
parent
f4f494e4b4
commit
3ca5fa6de6
1 changed files with 3 additions and 3 deletions
|
@ -63,12 +63,12 @@ App.Pages.Customers = (function () {
|
||||||
return; // Do nothing when user edits a customer record.
|
return; // Do nothing when user edits a customer record.
|
||||||
}
|
}
|
||||||
|
|
||||||
const customerId = $(event.target).attr('data-id');
|
const customerId = $(event.currentTarget).attr('data-id');
|
||||||
const customer = filterResults.find((filterResult) => Number(filterResult.id) === Number(customerId));
|
const customer = filterResults.find((filterResult) => Number(filterResult.id) === Number(customerId));
|
||||||
|
|
||||||
display(customer);
|
display(customer);
|
||||||
$('#filter-customers .selected').removeClass('selected');
|
$('#filter-customers .selected').removeClass('selected');
|
||||||
$(event.target).addClass('selected');
|
$(event.currentTarget).addClass('selected');
|
||||||
$('#edit-customer, #delete-customer').prop('disabled', false);
|
$('#edit-customer, #delete-customer').prop('disabled', false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -308,7 +308,7 @@ App.Pages.Customers = (function () {
|
||||||
// Service - Provider
|
// Service - Provider
|
||||||
|
|
||||||
$('<a/>', {
|
$('<a/>', {
|
||||||
'href': App.Utils.Url.siteUrl(`backend/index/${appointment.hash}`),
|
'href': App.Utils.Url.siteUrl(`calendar/reschedule/${appointment.hash}`),
|
||||||
'html': [
|
'html': [
|
||||||
$('<i/>', {
|
$('<i/>', {
|
||||||
'class': 'fas fa-edit me-1'
|
'class': 'fas fa-edit me-1'
|
||||||
|
|
Loading…
Reference in a new issue