From abdd5876a14e1971b5caac93f6735773e7ee388b Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 1 Mar 2024 16:12:17 -0800 Subject: Move search form to a dedicated page --- internal/ui/static/js/app.js | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'internal/ui/static/js/app.js') diff --git a/internal/ui/static/js/app.js b/internal/ui/static/js/app.js index 99145d49..599119a2 100644 --- a/internal/ui/static/js/app.js +++ b/internal/ui/static/js/app.js @@ -121,19 +121,6 @@ function handleSubmitButtons() { }); } -// Set cursor focus to the search input. -function setFocusToSearchInput(event) { - event.preventDefault(); - event.stopPropagation(); - const toggleSearchButton = document.querySelector(".search details") - if (!toggleSearchButton.getAttribute("open")) { - toggleSearchButton.setAttribute("open", "") - const searchInputElement = document.getElementById("search-input"); - searchInputElement.focus(); - searchInputElement.value = ""; - } -} - // Show modal dialog with the list of keyboard shortcuts. function showKeyboardShortcuts() { let template = document.getElementById("keyboard-shortcuts"); -- cgit v1.2.3