mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-20 20:16:33 +00:00
fix: jump to search for operand
This commit is contained in:
parent
f08a76a738
commit
e374e3abd4
4 changed files with 19 additions and 15 deletions
assets/js
|
@ -24,7 +24,7 @@ async function searchContents(query) {
|
|||
},
|
||||
body: JSON.stringify({
|
||||
query: query,
|
||||
limit: 8,
|
||||
limit: 10,
|
||||
}),
|
||||
})
|
||||
if (result.ok) {
|
||||
|
@ -48,7 +48,7 @@ registerHandlers(
|
|||
debounce((e) => {
|
||||
let term = e.target.value
|
||||
if (term !== "") {
|
||||
searchContents(term).then((results) => displayResults(results))
|
||||
searchContents(term).then((results) => displayResults(term, results))
|
||||
}
|
||||
}),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue