From b7d9efe7c3ea83fd4de767788a6ecc9da3bc4e55 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 18 Jan 2022 09:29:56 +0100 Subject: [PATCH] Remove prefix from service HTML elements --- application/views/pages/services.php | 38 ++++++++++++++-------------- assets/js/pages/services.js | 28 ++++++++++---------- 2 files changed, 32 insertions(+), 34 deletions(-) diff --git a/application/views/pages/services.php b/application/views/pages/services.php index d4b6f04d..d95feb54 100755 --- a/application/views/pages/services.php +++ b/application/views/pages/services.php @@ -53,53 +53,53 @@ - +
-
-
-
-
-
-
-
-
-
diff --git a/assets/js/pages/services.js b/assets/js/pages/services.js index b416ccc9..e52f63e2 100644 --- a/assets/js/pages/services.js +++ b/assets/js/pages/services.js @@ -16,16 +16,16 @@ */ App.Pages.Services = (function () { const $services = $('#services'); - const $id = $('#service-id'); - const $name = $('#service-name'); - const $duration = $('#service-duration'); - const $price = $('#service-price'); - const $currency = $('#service-currency'); - const $category = $('#service-category'); - const $availabilitiesType = $('#service-availabilities-type'); - const $attendantsNumber = $('#service-attendants-number'); - const $location = $('#service-location'); - const $description = $('#service-description'); + const $id = $('#id'); + const $name = $('#name'); + const $duration = $('#duration'); + const $price = $('#price'); + const $currency = $('#currency'); + const $category = $('#category'); + const $availabilitiesType = $('#availabilities-type'); + const $attendantsNumber = $('#attendants-number'); + const $location = $('#location'); + const $description = $('#description'); const $filterServices = $('#filter-services'); let filterResults = {}; let filterLimit = 20; @@ -385,15 +385,13 @@ App.Pages.Services = (function () { */ function updateAvailableCategories() { App.Http.Categories.search('', 999).then((response) => { - var $select = $('#service-category'); - - $select.empty(); + $category.empty(); response.forEach((category) => { - $select.append(new Option(category.name, category.id)); + $category.append(new Option(category.name, category.id)); }); - $select.append(new Option('- ' + lang('no_category') + ' -', '')).val(''); + $category.append(new Option('- ' + lang('no_category') + ' -', '')).val(''); }); }