From abfb649851160c095f76afc0cc2fb9f0fb5ff659 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Thu, 11 Jul 2024 16:58:53 +0200 Subject: [PATCH] Missing calls --- assets/js/pages/customers.js | 2 +- assets/js/pages/service_categories.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); }