diff --git a/assets/js/pages/customers.js b/assets/js/pages/customers.js index c60bf5b8..c2f5b81b 100644 --- a/assets/js/pages/customers.js +++ b/assets/js/pages/customers.js @@ -75,7 +75,7 @@ App.Pages.Customers = (function () { const customerId = $(event.currentTarget).attr('data-id'); const customer = filterResults.find((filterResult) => Number(filterResult.id) === Number(customerId)); - display(customer); + App.Pages.Customers.display(customer); $('#filter-customers .selected').removeClass('selected'); $(event.currentTarget).addClass('selected'); $('#edit-customer, #delete-customer').prop('disabled', false); diff --git a/assets/js/pages/service_categories.js b/assets/js/pages/service_categories.js index 72074f24..6190a2a6 100644 --- a/assets/js/pages/service_categories.js +++ b/assets/js/pages/service_categories.js @@ -59,7 +59,7 @@ App.Pages.ServiceCategories = (function () { (filterResult) => Number(filterResult.id) === Number(serviceCategoryId), ); - display(serviceCategory); + App.Pages.ServiceCategories.display(serviceCategory); $('#filter-service-categories .selected').removeClass('selected'); $(event.currentTarget).addClass('selected'); $('#edit-service-category, #delete-service-category').prop('disabled', false); @@ -313,7 +313,7 @@ App.Pages.ServiceCategories = (function () { if (show) { 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); }