1
0
Fork 0
forked from forgejo/forgejo

Change ID pattern of raw content container for issue (#21966)

Implement differentiation to html id for issue raw content container.

Fixes #21965
This commit is contained in:
Felipe Leopoldo Sologuren Gutiérrez 2022-12-09 13:25:32 -03:00 committed by GitHub
parent 2779d47ad3
commit 097d4e30b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 9 deletions

View file

@ -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')) {