diff options
author | Unknwon <u@gogs.io> | 2015-11-22 02:29:20 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-22 02:29:20 -0500 |
commit | e6b2a01e5d4f556ce35d4343094b74dc680d7cce (patch) | |
tree | a3328ea3519feaa86dff6796c4383cbd401dc40c | |
parent | 52c8f691630548fe091d30bcfe8164545a05d3d5 (diff) | |
download | gitea-e6b2a01e5d4f556ce35d4343094b74dc680d7cce.tar.gz gitea-e6b2a01e5d4f556ce35d4343094b74dc680d7cce.zip |
minor JS fix
-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 [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra <table> <tr> - <td width="33%"><img src="http://gogs.io/img/screenshots/1.png"></td> - <td width="33%"><img src="http://gogs.io/img/screenshots/2.png"></td> - <td width="33%"><img src="http://gogs.io/img/screenshots/3.png"></td> + <td width="33%"><img src="https://gogs.io/img/screenshots/1.png"></td> + <td width="33%"><img src="https://gogs.io/img/screenshots/2.png"></td> + <td width="33%"><img src="https://gogs.io/img/screenshots/3.png"></td> </tr> <tr> - <td><img src="http://gogs.io/img/screenshots/4.png"></td> - <td><img src="http://gogs.io/img/screenshots/5.png"></td> - <td><img src="http://gogs.io/img/screenshots/6.png"></td> + <td><img src="https://gogs.io/img/screenshots/4.png"></td> + <td><img src="https://gogs.io/img/screenshots/5.png"></td> + <td><img src="https://gogs.io/img/screenshots/6.png"></td> </tr> <tr> - <td><img src="http://gogs.io/img/screenshots/7.png"></td> - <td><img src="http://gogs.io/img/screenshots/8.png"></td> - <td><img src="http://gogs.io/img/screenshots/9.png"></td> + <td><img src="https://gogs.io/img/screenshots/7.png"></td> + <td><img src="https://gogs.io/img/screenshots/8.png"></td> + <td><img src="https://gogs.io/img/screenshots/9.png"></td> </tr> </table> 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 () { |