Missing calls

This commit is contained in:
Alex Tselegidis 2024-07-11 16:58:53 +02:00
parent 001231cfe4
commit abfb649851
2 changed files with 3 additions and 3 deletions

View file

@ -75,7 +75,7 @@ App.Pages.Customers = (function () {
const customerId = $(event.currentTarget).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); App.Pages.Customers.display(customer);
$('#filter-customers .selected').removeClass('selected'); $('#filter-customers .selected').removeClass('selected');
$(event.currentTarget).addClass('selected'); $(event.currentTarget).addClass('selected');
$('#edit-customer, #delete-customer').prop('disabled', false); $('#edit-customer, #delete-customer').prop('disabled', false);

View file

@ -59,7 +59,7 @@ App.Pages.ServiceCategories = (function () {
(filterResult) => Number(filterResult.id) === Number(serviceCategoryId), (filterResult) => Number(filterResult.id) === Number(serviceCategoryId),
); );
display(serviceCategory); App.Pages.ServiceCategories.display(serviceCategory);
$('#filter-service-categories .selected').removeClass('selected'); $('#filter-service-categories .selected').removeClass('selected');
$(event.currentTarget).addClass('selected'); $(event.currentTarget).addClass('selected');
$('#edit-service-category, #delete-service-category').prop('disabled', false); $('#edit-service-category, #delete-service-category').prop('disabled', false);
@ -313,7 +313,7 @@ App.Pages.ServiceCategories = (function () {
if (show) { if (show) {
const serviceCategory = filterResults.find((serviceCategory) => Number(serviceCategory.id) === Number(id)); const serviceCategory = filterResults.find((serviceCategory) => Number(serviceCategory.id) === Number(id));
display(serviceCategory); App.Pages.ServiceCategories.display(serviceCategory);
$('#edit-service-category, #delete-service-category').prop('disabled', false); $('#edit-service-category, #delete-service-category').prop('disabled', false);
} }