improved visuals

This commit is contained in:
Marcel Gansfusz
2025-07-17 00:28:48 +02:00
parent d6d3f46c78
commit f13e8711a7
7 changed files with 235 additions and 44 deletions

View File

@@ -20,10 +20,13 @@ function autocomplete(inp, type) {
val = this.value;
/*close any already open lists of autocompleted values*/
closeAllLists();
if (!val && type === "lva") {
if (!val && type === "lva" && pid === null) {
return false;
}
if (type === "prof" && lid !== null) {
if (type === "lva" && pid !== null) {
apirq =
url + type + "?searchterm=" + val + "&pid=" + pid + "&searchlim=10";
} else if (type === "prof" && lid !== null) {
apirq =
url + type + "?searchterm=" + val + "&lid=" + lid + "&searchlim=10";
} else if (type === "subcat" && lid !== null && pid !== null) {