mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-30 10:53:02 +01:00
Disable Incremental Search for Images on Web
Bug introduced in commit da118b3fed
This commit is contained in:
parent
26b50471b7
commit
f642450ed9
1 changed files with 9 additions and 2 deletions
|
@ -78,8 +78,15 @@
|
|||
}
|
||||
|
||||
function incremental_search(event) {
|
||||
// perform incremental search by default, rerank results if user presses enter
|
||||
event.key === 'Enter' ? search(rerank=true) : search(rerank=false);
|
||||
type = document.getElementById("type").value;
|
||||
// Search with reranking on 'Enter'
|
||||
if (event.key === 'Enter') {
|
||||
search(rerank=true);
|
||||
}
|
||||
// Limit incremental search to text types
|
||||
else if (type !== "image") {
|
||||
search(rerank=false);
|
||||
}
|
||||
}
|
||||
|
||||
function populate_type_dropdown() {
|
||||
|
|
Loading…
Reference in a new issue