diff options
-rw-r--r-- | README.md | 18 | ||||
-rw-r--r-- | public/js/gogs.js | 2 |
2 files changed, 11 insertions, 9 deletions
@@ -9,19 +9,19 @@ Gogs - Go Git Service [ { hideWhenLostFocus('#search-user-box .results', '#search-user-box'); } +// FIXME: merge common parts in two functions function searchRepositories() { if (!$('#search-repo-box .results').length) { return; @@ -671,6 +672,7 @@ function searchRepositories() { $search_repo_box.find('input').focus(function () { $search_repo_box.keyup(); }); + hideWhenLostFocus('#search-repo-box .results', '#search-repo-box'); } $(document).ready(function () { |