Skip to content

Commit

Permalink
perf: 优化项目搜索
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzhenping committed Jul 8, 2024
1 parent 18875b9 commit 7fb4c51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions static/js/kancloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,11 @@ $(function () {
$(".m-manual").removeClass("manual-mode-view manual-mode-collect manual-mode-search").addClass("manual-mode-" + mode);
});

const input = document.getElementById('searchForm').querySelector('input');
input.addEventListener('input', function() {
$("#btnSearch").click();
});

/**
* 项目内搜索
*/
Expand Down

0 comments on commit 7fb4c51

Please sign in to comment.