mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(rpc): add 'suggest-pkgbase' type
This feature of RPC is required to take advantage of javascript typeahead. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
fb0f252b39
commit
990f4d182b
3 changed files with 36 additions and 7 deletions
|
@ -67,7 +67,7 @@ const typeahead = (function() {
|
|||
}
|
||||
|
||||
function fetchData(letter) {
|
||||
const url = '/rpc?type=' + suggest_type + '&arg=' + letter;
|
||||
const url = '/rpc?v=5&type=' + suggest_type + '&arg=' + letter;
|
||||
fetch(url).then(function(response) {
|
||||
return response.json();
|
||||
}).then(function(data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue