mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 21:29:13 +00:00
Disable Incremental Search for Images on Web
Bug introduced in commit da118b3fed
This commit is contained in:
@@ -78,8 +78,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function incremental_search(event) {
|
function incremental_search(event) {
|
||||||
// perform incremental search by default, rerank results if user presses enter
|
type = document.getElementById("type").value;
|
||||||
event.key === 'Enter' ? search(rerank=true) : search(rerank=false);
|
// 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() {
|
function populate_type_dropdown() {
|
||||||
|
|||||||
Reference in New Issue
Block a user