Set focus after opening search form

This commit is contained in:
denfil 2016-09-27 18:35:48 +03:00
parent 7890a96bbd
commit eed63e5c4a
2 changed files with 4 additions and 2 deletions

View File

@ -971,7 +971,8 @@ Miniflux.Nav = (function() {
},
ShowSearch: function() {
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
};

View File

@ -109,7 +109,8 @@ Miniflux.Nav = (function() {
},
ShowSearch: function() {
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
};