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:
wxiaoguang 2024-12-28 19:26:16 +08:00 committed by GitHub
parent e69da2cd07
commit 3d3ece36d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 43 additions and 35 deletions

View file

@ -30,6 +30,9 @@ async function tryOnEditContent(e) {
const saveAndRefresh = async (e) => {
e.preventDefault();
// we are already in a form, do not bubble up to the document otherwise there will be other "form submit handlers"
// at the moment, the form submit event conflicts with initRepoDiffConversationForm (global '.conversation-holder form' event handler)
e.stopPropagation();
renderContent.classList.add('is-loading');
showElem(renderContent);
hideElem(editContentZone);