mirror of
https://github.com/miniflux/v2.git
synced 2025-07-22 17:18:37 +00:00
remove code for debug and comment
This commit is contained in:
parent
7413e383a8
commit
890a34e1bd
1 changed files with 1 additions and 18 deletions
|
@ -68,30 +68,13 @@ function handleSubmitButtons() {
|
||||||
function setFocusToSearchInput(event) {
|
function setFocusToSearchInput(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
const toggleSearchButton = document.querySelector(".search details")
|
const toggleSearchButton = document.querySelector(".search details")
|
||||||
console.log(toggleSearchButton.getAttribute("open"))
|
|
||||||
if (!toggleSearchButton.getAttribute("open")) {
|
if (!toggleSearchButton.getAttribute("open")) {
|
||||||
toggleSearchButton.setAttribute("open", "")
|
toggleSearchButton.setAttribute("open", "")
|
||||||
const searchInputElement = document.getElementById("search-input");
|
const searchInputElement = document.getElementById("search-input");
|
||||||
searchInputElement.focus();
|
searchInputElement.focus();
|
||||||
searchInputElement.value = "";
|
searchInputElement.value = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
/* let toggleSwitchElement = document.querySelector(".search-toggle-switch");
|
|
||||||
if (toggleSwitchElement) {
|
|
||||||
toggleSwitchElement.style.display = "none";
|
|
||||||
}
|
|
||||||
|
|
||||||
let searchFormElement = document.querySelector(".search-form");
|
|
||||||
if (searchFormElement) {
|
|
||||||
searchFormElement.style.display = "block";
|
|
||||||
}
|
|
||||||
|
|
||||||
let searchInputElement = document.getElementById("search-input");
|
|
||||||
if (searchInputElement) {
|
|
||||||
searchInputElement.focus();
|
|
||||||
searchInputElement.value = "";
|
|
||||||
} */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show modal dialog with the list of keyboard shortcuts.
|
// Show modal dialog with the list of keyboard shortcuts.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue