mirror of
https://github.com/krateng/maloja.git
synced 2025-07-09 03:04:07 -04: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;
|
var debounceTimer;
|
||||||
|
|
||||||
function search(searchfield) {
|
function search(searchfield) {
|
||||||
@ -12,7 +12,7 @@ function search(searchfield) {
|
|||||||
const xhttp = new XMLHttpRequest();
|
const xhttp = new XMLHttpRequest();
|
||||||
searches.push(xhttp);
|
searches.push(xhttp);
|
||||||
xhttp.onreadystatechange = searchresult
|
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();
|
xhttp.send();
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user