diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-07-12 13:58:57 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-07-12 13:58:57 +0200 |
| commit | 0c57fde6a995be81068b43cff8f0ec25530f2301 (patch) | |
| tree | 1d4d2cd7426c6365475905d5481ff4c9ac43ffe6 /js/selection.js | |
| parent | d09eb5e6348ffba76454df871f91d9cd15c20635 (diff) | |
| download | bycs-sol-0c57fde6a995be81068b43cff8f0ec25530f2301.tar.gz bycs-sol-0c57fde6a995be81068b43cff8f0ec25530f2301.zip | |
add loader to selection
Diffstat (limited to 'js/selection.js')
| -rw-r--r-- | js/selection.js | 3 |
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 = []; |
