mirror of
https://github.com/go-gitea/gitea
synced 2025-07-04 09:37:19 +00:00
Refactor comment history and fix content edit (#33018)
And fix a regression bug for comment content editing. Now 11 "import jquery" files left
This commit is contained in:
@ -38,6 +38,8 @@ function initRepoDiffFileViewToggle() {
|
||||
}
|
||||
|
||||
function initRepoDiffConversationForm() {
|
||||
// FIXME: there could be various different form in a conversation-holder (for example: reply form, edit form).
|
||||
// This listener is for "reply form" only, it should clearly distinguish different forms in the future.
|
||||
addDelegatedEventListener<HTMLFormElement, SubmitEvent>(document, 'submit', '.conversation-holder form', async (form, e) => {
|
||||
e.preventDefault();
|
||||
const textArea = form.querySelector<HTMLTextAreaElement>('textarea');
|
||||
|
Reference in New Issue
Block a user