From 2ec8da89e869ac5f9fdba9ccecd36bb1e184bca1 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Fri, 7 Jul 2023 12:49:58 -0700 Subject: [PATCH] Remove Update button from Khoj Search page on the Web interface The settings page on the Khoj web interface already has a configure button. Don't need the Update button on the search page as well --- src/khoj/interface/web/index.html | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/khoj/interface/web/index.html b/src/khoj/interface/web/index.html index 15deba05..659435b0 100644 --- a/src/khoj/interface/web/index.html +++ b/src/khoj/interface/web/index.html @@ -133,17 +133,6 @@ }); } - function updateIndex() { - type = document.getElementById("type").value; - fetch(`/api/update?t=${type}&client=web`) - .then(response => response.json()) - .then(data => { - console.log(data); - document.getElementById("results").innerHTML = - render_results(data); - }); - } - function incrementalSearch(event) { type = document.getElementById("type").value; // Search with reranking on 'Enter' @@ -268,9 +257,6 @@ - - - @@ -318,7 +304,7 @@ #options { padding: 0; display: grid; - grid-template-columns: 1fr 1fr minmax(70px, 0.5fr); + grid-template-columns: 1fr minmax(70px, 0.5fr); } #options > * { padding: 15px;