diff options
author | Felipe Leopoldo Sologuren GutiƩrrez <fsologureng@users.noreply.github.com> | 2022-12-09 13:25:32 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-10 00:25:32 +0800 |
commit | 097d4e30b180eef30600beef2c08095e2571319c (patch) | |
tree | d838f45082c3af6dd44d912fa9529df04b10456d /web_src | |
parent | 2779d47ad3c986b779c2e17bb223b3af5a6f1287 (diff) | |
download | gitea-097d4e30b180eef30600beef2c08095e2571319c.tar.gz gitea-097d4e30b180eef30600beef2c08095e2571319c.zip |
Change ID pattern of raw content container for issue (#21966)
Implement differentiation to html id for issue raw content container.
Fixes #21965
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/js/features/repo-issue.js | 2 | ||||
-rw-r--r-- | web_src/js/features/repo-legacy.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js index 54cdeb383b..ca5d69c5a6 100644 --- a/web_src/js/features/repo-issue.js +++ b/web_src/js/features/repo-issue.js @@ -553,7 +553,7 @@ export function initRepoIssueReferenceIssue() { const $this = $(this); $this.closest('.dropdown').find('.menu').toggle('visible'); - const content = $(`#comment-${$this.data('target')}`).text(); + const content = $(`#${$this.data('target')}`).text(); const poster = $this.data('poster-username'); const reference = $this.data('reference'); const $modal = $($this.data('modal')); diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index d438186c5f..910d4bb56c 100644 --- a/web_src/js/features/repo-legacy.js +++ b/web_src/js/features/repo-legacy.js @@ -566,7 +566,7 @@ function initRepoIssueCommentEdit() { $(document).on('click', '.quote-reply', function (event) { $(this).closest('.dropdown').find('.menu').toggle('visible'); const target = $(this).data('target'); - const quote = $(`#comment-${target}`).text().replace(/\n/g, '\n> '); + const quote = $(`#${target}`).text().replace(/\n/g, '\n> '); const content = `> ${quote}\n\n`; let easyMDE; if ($(this).hasClass('quote-reply-diff')) { |