From 56ebf8862c568c1fbbe774ff4e7ad6bd195d74d2 Mon Sep 17 00:00:00 2001 From: HEREYUA <1240335630@qq.com> Date: Fri, 22 Mar 2024 14:31:28 +0800 Subject: [PATCH] Modify the feature to save comments --- web_src/js/features/repo-legacy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/repo-legacy.js b/web_src/js/features/repo-legacy.js index 5afb407223b0f..18978e9e29edd 100644 --- a/web_src/js/features/repo-legacy.js +++ b/web_src/js/features/repo-legacy.js @@ -436,7 +436,7 @@ async function onEditContent(event) { const $content = $segment; if (!$content.find('.dropzone-attachments').length) { if (data.attachments !== '') { - $content[0].append(data.attachments); + $content[0].insertAdjacentHTML('beforeend', data.attachments); } } else if (data.attachments === '') { $content.find('.dropzone-attachments').remove();