Merge pull-request #564

This commit is contained in:
Frederic Guillot 2016-10-08 10:54:04 -04:00
commit b7996696d7
No known key found for this signature in database
GPG Key ID: 92D77191BA7FBC99
2 changed files with 4 additions and 2 deletions

View File

@ -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
}; };

View File

@ -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
}; };