summaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-01-30 13:57:47 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-30 13:57:47 +0800
commitd078aa30d6e6f40978ea68e9ae6eee53dc028ada (patch)
treedec31fc5ed5b4bef43e8a8de847084affdf9728f /public/js
parent7765593018cf26e9d5c9b68374b981f24993cfae (diff)
downloadgitea-d078aa30d6e6f40978ea68e9ae6eee53dc028ada.tar.gz
gitea-d078aa30d6e6f40978ea68e9ae6eee53dc028ada.zip
feat: add search repository on dashboard. (#773)
Diffstat (limited to 'public/js')
-rw-r--r--public/js/index.js9
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;}');
+ }
+ });
});