diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-01-30 13:57:47 +0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-30 13:57:47 +0800 |
commit | d078aa30d6e6f40978ea68e9ae6eee53dc028ada (patch) | |
tree | dec31fc5ed5b4bef43e8a8de847084affdf9728f /public | |
parent | 7765593018cf26e9d5c9b68374b981f24993cfae (diff) | |
download | gitea-d078aa30d6e6f40978ea68e9ae6eee53dc028ada.tar.gz gitea-d078aa30d6e6f40978ea68e9ae6eee53dc028ada.zip |
feat: add search repository on dashboard. (#773)
Diffstat (limited to 'public')
-rw-r--r-- | public/js/index.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/public/js/index.js b/public/js/index.js index 8674993261..8ccbfc175b 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1464,4 +1464,13 @@ function selectRange($list, $select, $from) { $(function () { if ($('.user.signin').length > 0) return; $('form').areYouSure(); + + $("#search_repo").on('change paste keyup',function(){ + var value = $(this).val(); + if(!value){ + $('.list-search-style').html(''); + } else{ + $('.list-search-style').html('.search-list li:not([data-title*="' + value + '"]) {display: none;}'); + } + }); }); |