feedback when no serch results were found
This commit is contained in:
parent
105441f8b7
commit
79723f3839
1 changed files with 4 additions and 0 deletions
|
@ -84,6 +84,10 @@ function ready() {
|
||||||
create_wrapper.innerHTML = partial;
|
create_wrapper.innerHTML = partial;
|
||||||
div.appendChild(create_wrapper.firstChild);
|
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 %>;
|
const documents = <%= CreateFullTextIndex.new(@items.find_all("**/verenigingen/*") + @items.find_all("**/konventen/*")).call.to_json %>;
|
||||||
|
|
Loading…
Reference in a new issue