From e6b2a01e5d4f556ce35d4343094b74dc680d7cce Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 22 Nov 2015 02:29:20 -0500 Subject: [PATCH] minor JS fix --- README.md | 18 +++++++++--------- public/js/gogs.js | 2 ++ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 8d5471aed5..dbad9dba3e 100644 --- a/README.md +++ b/README.md @@ -9,19 +9,19 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra - - - + + + - - - + + + - - - + + +
diff --git a/public/js/gogs.js b/public/js/gogs.js index 0fd2b46ab9..599f363787 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -626,6 +626,7 @@ function searchUsers() { 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 () {