mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 03:32:26 +08:00
Add full text search in autocomplete results
This commit is contained in:
parent
f36594efb7
commit
13da46ff1b
@ -121,7 +121,7 @@ function fullTextSearch($el, options){
|
|||||||
$el.autocomplete('val', '');
|
$el.autocomplete('val', '');
|
||||||
$el.setSelectedNotePath("");
|
$el.setSelectedNotePath("");
|
||||||
$el.autocomplete('val', searchString);
|
$el.autocomplete('val', searchString);
|
||||||
// Set a delay to avoid resetting to true before the full text search is completed.
|
// Set a delay to avoid resetting to true before full text search (await server.get) is called.
|
||||||
setTimeout(() => { options.fastSearch = true; }, 100);
|
setTimeout(() => { options.fastSearch = true; }, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user