aboutsummaryrefslogtreecommitdiff
path: root/js/selection.js
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-07-12 13:58:57 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2026-07-12 13:58:57 +0200
commit0c57fde6a995be81068b43cff8f0ec25530f2301 (patch)
tree1d4d2cd7426c6365475905d5481ff4c9ac43ffe6 /js/selection.js
parentd09eb5e6348ffba76454df871f91d9cd15c20635 (diff)
downloadbycs-sol-0c57fde6a995be81068b43cff8f0ec25530f2301.tar.gz
bycs-sol-0c57fde6a995be81068b43cff8f0ec25530f2301.zip
add loader to selection
Diffstat (limited to 'js/selection.js')
-rw-r--r--js/selection.js3
1 files changed, 3 insertions, 0 deletions
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 = [];