aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to '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 = [];