From 04aeab7ea6b0cc68ce064383505b1cec39ce4403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Thu, 29 Feb 2024 22:50:26 +0100 Subject: [PATCH] Renamed the quicksearch controller --- ...rt_livesearch_controller.js => part_search_controller.js} | 5 +++++ templates/components/search.macro.html.twig | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) rename assets/controllers/elements/{part_livesearch_controller.js => part_search_controller.js} (97%) diff --git a/assets/controllers/elements/part_livesearch_controller.js b/assets/controllers/elements/part_search_controller.js similarity index 97% rename from assets/controllers/elements/part_livesearch_controller.js rename to assets/controllers/elements/part_search_controller.js index 1bd00e9f..f4817ea5 100644 --- a/assets/controllers/elements/part_livesearch_controller.js +++ b/assets/controllers/elements/part_search_controller.js @@ -31,6 +31,11 @@ import { STATISTICS_PARTS } from '../../translator'; + +/** + * This controller is responsible for the search fields in the navbar and the homepage. + * It uses the Algolia Autocomplete library to provide a fast and responsive search. + */ export default class extends Controller { static targets = ["input"]; diff --git a/templates/components/search.macro.html.twig b/templates/components/search.macro.html.twig index f85b133c..5086d7a1 100644 --- a/templates/components/search.macro.html.twig +++ b/templates/components/search.macro.html.twig @@ -84,7 +84,7 @@ {{ _self.settings_drodown(is_navbar) }} {% endif %} -