mirror of
https://github.com/krateng/maloja.git
synced 2025-04-12 15:07:13 +03:00
Update search URL, probably fix GH-368
This commit is contained in:
parent
63386b5ede
commit
9a6c51a36d
@ -1,4 +1,4 @@
|
||||
var searches = []
|
||||
var searches = [];
|
||||
var debounceTimer;
|
||||
|
||||
function search(searchfield) {
|
||||
@ -12,7 +12,7 @@ function search(searchfield) {
|
||||
const xhttp = new XMLHttpRequest();
|
||||
searches.push(xhttp);
|
||||
xhttp.onreadystatechange = searchresult
|
||||
xhttp.open("GET","/api/search?max=5&query=" + encodeURIComponent(txt), true);
|
||||
xhttp.open("GET","/apis/mlj_1/search?max=5&query=" + encodeURIComponent(txt), true);
|
||||
xhttp.send();
|
||||
}
|
||||
}, 1000);
|
||||
|
Loading…
x
Reference in New Issue
Block a user