diff options
author | zeripath <art27@cantab.net> | 2021-09-15 09:45:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 09:45:27 +0100 |
commit | 976db2a8b78b18f6ca934b9da93b4e3b2c746de5 (patch) | |
tree | ff051e8e51e1fd26378908c15b056415a3303483 /web_src/js/features/contextpopup.js | |
parent | fc97e0626eafc5024c91d4f0ca96dbc81451897b (diff) | |
download | gitea-976db2a8b78b18f6ca934b9da93b4e3b2c746de5.tar.gz gitea-976db2a8b78b18f6ca934b9da93b4e3b2c746de5.zip |
Do not show issue context popup on external issues (#17050)
The issues pop-up context cannot work for external issues - therefore do not show
these.
Fix #17047
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'web_src/js/features/contextpopup.js')
-rw-r--r-- | web_src/js/features/contextpopup.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web_src/js/features/contextpopup.js b/web_src/js/features/contextpopup.js index 8583c6253c..b97f77275a 100644 --- a/web_src/js/features/contextpopup.js +++ b/web_src/js/features/contextpopup.js @@ -7,6 +7,9 @@ export default function initContextPopups() { if (!refIssues.length) return; refIssues.each(function () { + if ($(this).hasClass('ref-external-issue')) { + return; + } const [index, _issues, repo, owner] = $(this).attr('href').replace(/[#?].*$/, '').split('/').reverse(); const el = document.createElement('div'); |