Browse Source

minor JS fix

pull/2024/head
Unknwon 9 years ago
parent
commit
e6b2a01e5d
  1. 18
      README.md
  2. 2
      public/js/gogs.js

18
README.md

@ -9,19 +9,19 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra
<table> <table>
<tr> <tr>
<td width="33%"><img src="http://gogs.io/img/screenshots/1.png"></td> <td width="33%"><img src="https://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="https://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/3.png"></td>
</tr> </tr>
<tr> <tr>
<td><img src="http://gogs.io/img/screenshots/4.png"></td> <td><img src="https://gogs.io/img/screenshots/4.png"></td>
<td><img src="http://gogs.io/img/screenshots/5.png"></td> <td><img src="https://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/6.png"></td>
</tr> </tr>
<tr> <tr>
<td><img src="http://gogs.io/img/screenshots/7.png"></td> <td><img src="https://gogs.io/img/screenshots/7.png"></td>
<td><img src="http://gogs.io/img/screenshots/8.png"></td> <td><img src="https://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/9.png"></td>
</tr> </tr>
</table> </table>

2
public/js/gogs.js

@ -626,6 +626,7 @@ function searchUsers() {
hideWhenLostFocus('#search-user-box .results', '#search-user-box'); hideWhenLostFocus('#search-user-box .results', '#search-user-box');
} }
// FIXME: merge common parts in two functions
function searchRepositories() { function searchRepositories() {
if (!$('#search-repo-box .results').length) { if (!$('#search-repo-box .results').length) {
return; return;
@ -671,6 +672,7 @@ function searchRepositories() {
$search_repo_box.find('input').focus(function () { $search_repo_box.find('input').focus(function () {
$search_repo_box.keyup(); $search_repo_box.keyup();
}); });
hideWhenLostFocus('#search-repo-box .results', '#search-repo-box');
} }
$(document).ready(function () { $(document).ready(function () {

Loading…
Cancel
Save