feedback when no serch results were found

This commit is contained in:
Ilion Beyst 2020-09-18 02:21:19 +02:00
parent 105441f8b7
commit 79723f3839

View file

@ -84,6 +84,10 @@ function ready() {
create_wrapper.innerHTML = partial;
div.appendChild(create_wrapper.firstChild);
}
if (partials.length == 0) {
create_wrapper.innerHTML = "Geen verenigingen gevonden :(";
div.appendChild(create_wrapper);
}
}
const documents = <%= CreateFullTextIndex.new(@items.find_all("**/verenigingen/*") + @items.find_all("**/konventen/*")).call.to_json %>;