diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-01-19 14:43:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-19 14:43:38 +0800 |
commit | f540d0ac87fe776e71c5caeba20049f46a667efe (patch) | |
tree | 71c115e7b4081ac013c92cfa4e8ad88c43e9dbaa /web_src/js/index.js | |
parent | 0641965860bc5ebcb1c85067976099986d0136c6 (diff) | |
download | gitea-f540d0ac87fe776e71c5caeba20049f46a667efe.tar.gz gitea-f540d0ac87fe776e71c5caeba20049f46a667efe.zip |
Fix issues/pulls dependencies problems (#9842)
* Fix issues/pulls dependencies problems
* fix swagger and api param name
* fix js
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r-- | web_src/js/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index 7c3749c08b..619ca74e52 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -3455,9 +3455,10 @@ function initIssueList() { const repolink = $('#repolink').val(); const repoId = $('#repoId').val(); const crossRepoSearch = $('#crossRepoSearch').val(); - let issueSearchUrl = `${suburl}/api/v1/repos/${repolink}/issues?q={query}`; + const tp = $('#type').val(); + let issueSearchUrl = `${suburl}/api/v1/repos/${repolink}/issues?q={query}&type=${tp}`; if (crossRepoSearch === 'true') { - issueSearchUrl = `${suburl}/api/v1/repos/issues/search?q={query}&priority_repo_id=${repoId}`; + issueSearchUrl = `${suburl}/api/v1/repos/issues/search?q={query}&priority_repo_id=${repoId}&type=${tp}`; } $('#new-dependency-drop-list') .dropdown({ |