From 0c57fde6a995be81068b43cff8f0ec25530f2301 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 12 Jul 2026 13:58:57 +0200 Subject: add loader to selection --- js/selection.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js/selection.js') diff --git a/js/selection.js b/js/selection.js index a1da244..eda20ae 100644 --- a/js/selection.js +++ b/js/selection.js @@ -16,8 +16,11 @@ async function initSelection(idPrefix, fetchCandidates, fmtCandidate, onSelectio const list = document.getElementById(`${idPrefix}-list`); const noResults = document.getElementById(`${idPrefix}-noresults`); const clearBtn = document.getElementById(`${idPrefix}-clear`); + const loader = document.getElementById(`${idPrefix}-loader`); + loader.style.display = "unset"; const candidates = await fetchCandidates(); + loader.style.display = "none"; let items = []; -- cgit v1.2.3