Set focus after opening search form
This commit is contained in:
parent
7890a96bbd
commit
eed63e5c4a
@ -971,7 +971,8 @@ Miniflux.Nav = (function() {
|
|||||||
},
|
},
|
||||||
ShowSearch: function() {
|
ShowSearch: function() {
|
||||||
document.getElementById("search-opener").setAttribute("class", "hide");
|
document.getElementById("search-opener").setAttribute("class", "hide");
|
||||||
document.getElementById("search-form").removeAttribute("class")
|
document.getElementById("search-form").removeAttribute("class");
|
||||||
|
document.getElementById("form-text").focus();
|
||||||
},
|
},
|
||||||
IsListing: isListing
|
IsListing: isListing
|
||||||
};
|
};
|
||||||
|
@ -109,7 +109,8 @@ Miniflux.Nav = (function() {
|
|||||||
},
|
},
|
||||||
ShowSearch: function() {
|
ShowSearch: function() {
|
||||||
document.getElementById("search-opener").setAttribute("class", "hide");
|
document.getElementById("search-opener").setAttribute("class", "hide");
|
||||||
document.getElementById("search-form").removeAttribute("class")
|
document.getElementById("search-form").removeAttribute("class");
|
||||||
|
document.getElementById("form-text").focus();
|
||||||
},
|
},
|
||||||
IsListing: isListing
|
IsListing: isListing
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user